]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-avr32/page.h
KVM: Prefix some x86 low level function with kvm_, to avoid namespace issues
[linux-2.6-omap-h63xx.git] / include / asm-avr32 / page.h
index 5582968feee853220432ac4b503c038c4beb7d0f..cbbc5ca9728bb94558513df79d18904633b84ca9 100644 (file)
@@ -8,13 +8,11 @@
 #ifndef __ASM_AVR32_PAGE_H
 #define __ASM_AVR32_PAGE_H
 
+#include <linux/const.h>
+
 /* PAGE_SHIFT determines the page size */
 #define PAGE_SHIFT     12
-#ifdef __ASSEMBLY__
-#define PAGE_SIZE      (1 << PAGE_SHIFT)
-#else
-#define PAGE_SIZE      (1UL << PAGE_SHIFT)
-#endif
+#define PAGE_SIZE      (_AC(1, UL) << PAGE_SHIFT)
 #define PAGE_MASK      (~(PAGE_SIZE-1))
 #define PTE_MASK       PAGE_MASK