Subversion Repositories HelenOS

Rev

Rev 3207 | Rev 3972 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3207 Rev 3208
Line 61... Line 61...
61
#define FRAME_KA        0x1
61
#define FRAME_KA        0x1
62
/** Do not panic and do not sleep on failure. */
62
/** Do not panic and do not sleep on failure. */
63
#define FRAME_ATOMIC        0x2
63
#define FRAME_ATOMIC        0x2
64
/** Do not start reclaiming when no free memory. */
64
/** Do not start reclaiming when no free memory. */
65
#define FRAME_NO_RECLAIM    0x4
65
#define FRAME_NO_RECLAIM    0x4
66
/** Do not allocate above 16GiB. */
66
/** Do not allocate above 4 GiB. */
67
#define FRAME_LOW_16_GiB    0x8
67
#define FRAME_LOW_4_GiB     0x8
68
 
68
 
69
static inline uintptr_t PFN2ADDR(pfn_t frame)
69
static inline uintptr_t PFN2ADDR(pfn_t frame)
70
{
70
{
71
    return (uintptr_t) (frame << FRAME_WIDTH);
71
    return (uintptr_t) (frame << FRAME_WIDTH);
72
}
72
}