Changeset 5c3243e in mainline for generic/include/mm/frame.h


Ignore:
Timestamp:
2006-02-08T14:01:58Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4c8715d2
Parents:
5e3757d
Message:

Fix mapping1 test.

Cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/include/mm/frame.h

    r5e3757d r5c3243e  
    4242#define ZONES_MAX       16      /**< Maximum number of zones in system */
    4343
    44 #define ZONE_JOIN       0x1  /**< If possible, merge with neighberhood zones */
    45 
     44#define ZONE_JOIN       0x1     /**< If possible, merge with neighberhood zones */
    4645
    4746#define FRAME_KA                0x1     /* skip frames conflicting with user address space */
    4847#define FRAME_PANIC             0x2     /* panic on failure */
    4948#define FRAME_ATOMIC            0x4     /* do not panic and do not sleep on failure */
    50 #define FRAME_NO_RECLAIM        0x8     /* Do not start reclaiming when no free memory */
     49#define FRAME_NO_RECLAIM        0x8     /* do not start reclaiming when no free memory */
    5150
    5251#define FRAME_OK                0       /* frame_alloc return status */
     
    6867static inline __address PFN2ADDR(pfn_t frame)
    6968{
    70         return (__address)(frame << PAGE_WIDTH);
     69        return (__address)(frame << FRAME_WIDTH);
    7170}
    7271
    7372static inline pfn_t ADDR2PFN(__address addr)
    7473{
    75         return (pfn_t)(addr >> PAGE_WIDTH);
     74        return (pfn_t)(addr >> FRAME_WIDTH);
    7675}
    7776
     
    8079        if (!size)
    8180                return 0;
    82         return (pfn_t)((size-1) >> PAGE_WIDTH)+1;
     81        return (pfn_t)((size-1) >> FRAME_WIDTH)+1;
    8382}
    8483
     
    8887#define IS_BUDDY_LEFT_BLOCK_ABS(zone, frame)    (((frame_index_abs((zone), (frame)) >> (frame)->buddy_order) & 0x1) == 0)
    8988#define IS_BUDDY_RIGHT_BLOCK_ABS(zone, frame)   (((frame_index_abs((zone), (frame)) >> (frame)->buddy_order) & 0x1) == 1)
    90 
    9189
    9290#define frame_alloc(order, flags)                               frame_alloc_generic(order, flags, NULL, NULL)
Note: See TracChangeset for help on using the changeset viewer.