9 PAGE_MASK = (PAGE_SIZE - 1),
10 SUPERPAGE_SIZE = (1 << 22),
11 SUPERPAGE_MASK = (SUPERPAGE_SIZE - 1),
15 superpage_aligned(Address x)
16 { return (x & SUPERPAGE_MASK) == 0; }
18 static inline Address trunc_superpage(Address x)
19 { return x & ~SUPERPAGE_MASK; }
21 static inline Address trunc_page(Address x)
22 { return x & ~PAGE_MASK; }
24 static inline Address round_page(Address x)
25 { return (x + PAGE_MASK) & ~PAGE_MASK; }
27 static inline Address round_superpage(Address x)
28 { return (x + SUPERPAGE_MASK) & ~SUPERPAGE_MASK; }