Go to the documentation of this file. 1 #ifndef _PPC_BOOT_PAGE_H
2 #define _PPC_BOOT_PAGE_H
13 #define ASM_CONST(x) x
15 #define __ASM_CONST(x) x##UL
16 #define ASM_CONST(x) __ASM_CONST(x)
21 #define PAGE_SIZE (ASM_CONST(1) << PAGE_SHIFT)
22 #define PAGE_MASK (~(PAGE_SIZE-1))
25 #define _ALIGN_UP(addr,size) (((addr)+((size)-1))&(~((size)-1)))
26 #define _ALIGN_DOWN(addr,size) ((addr)&(~((size)-1)))
29 #define _ALIGN(addr,size) _ALIGN_UP(addr,size)
32 #define PAGE_ALIGN(addr) _ALIGN(addr, PAGE_SIZE)