diff options
Diffstat (limited to 'include/asm-x86/page_64.h')
-rw-r--r-- | include/asm-x86/page_64.h | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/include/asm-x86/page_64.h b/include/asm-x86/page_64.h index f5e82c695d2..f8a07bf54c3 100644 --- a/include/asm-x86/page_64.h +++ b/include/asm-x86/page_64.h @@ -7,30 +7,9 @@ extern unsigned long end_pfn; extern unsigned long end_pfn_map; -/* - * These are used to make use of C type-checking.. - */ -typedef struct { unsigned long pmd; } pmd_t; -typedef struct { unsigned long pud; } pud_t; -typedef struct { unsigned long pgd; } pgd_t; -#define PTE_MASK PHYSICAL_PAGE_MASK - -typedef struct { unsigned long pgprot; } pgprot_t; extern unsigned long phys_base; -#define pte_val(x) ((x).pte) -#define pmd_val(x) ((x).pmd) -#define pud_val(x) ((x).pud) -#define pgd_val(x) ((x).pgd) -#define pgprot_val(x) ((x).pgprot) - -#define __pte(x) ((pte_t) { (x) } ) -#define __pmd(x) ((pmd_t) { (x) } ) -#define __pud(x) ((pud_t) { (x) } ) -#define __pgd(x) ((pgd_t) { (x) } ) -#define __pgprot(x) ((pgprot_t) { (x) } ) - #endif /* !__ASSEMBLY__ */ #ifndef __ASSEMBLY__ |