Commit 1dfc07aa authored by Jeremy Fitzhardinge's avatar Jeremy Fitzhardinge Committed by Jeremy Fitzhardinge

x86: move 2 and 3 level asm-generic defs into page-defs

Signed-off-by: default avatarJeremy Fitzhardinge <jeremy@goop.org>
parent 51c78eb3
...@@ -58,8 +58,6 @@ static inline pudval_t native_pud_val(pud_t pud) ...@@ -58,8 +58,6 @@ static inline pudval_t native_pud_val(pud_t pud)
return pud.pud; return pud.pud;
} }
#else /* PAGETABLE_LEVELS == 3 */ #else /* PAGETABLE_LEVELS == 3 */
#include <asm-generic/pgtable-nopud.h>
static inline pudval_t native_pud_val(pud_t pud) static inline pudval_t native_pud_val(pud_t pud)
{ {
return native_pgd_val(pud.pgd); return native_pgd_val(pud.pgd);
...@@ -82,8 +80,6 @@ static inline pmdval_t native_pmd_val(pmd_t pmd) ...@@ -82,8 +80,6 @@ static inline pmdval_t native_pmd_val(pmd_t pmd)
} }
#else /* PAGETABLE_LEVELS == 2 */ #else /* PAGETABLE_LEVELS == 2 */
#include <asm-generic/pgtable-nopmd.h>
static inline pmdval_t native_pmd_val(pmd_t pmd) static inline pmdval_t native_pmd_val(pmd_t pmd)
{ {
return native_pgd_val(pmd.pud.pgd); return native_pgd_val(pmd.pud.pgd);
......
...@@ -53,10 +53,14 @@ typedef struct { pgprotval_t pgprot; } pgprot_t; ...@@ -53,10 +53,14 @@ typedef struct { pgprotval_t pgprot; } pgprot_t;
#if PAGETABLE_LEVELS > 3 #if PAGETABLE_LEVELS > 3
typedef struct { pudval_t pud; } pud_t; typedef struct { pudval_t pud; } pud_t;
#else
#include <asm-generic/pgtable-nopud.h>
#endif #endif
#if PAGETABLE_LEVELS > 2 #if PAGETABLE_LEVELS > 2
typedef struct { pmdval_t pmd; } pmd_t; typedef struct { pmdval_t pmd; } pmd_t;
#else
#include <asm-generic/pgtable-nopmd.h>
#endif #endif
typedef struct page *pgtable_t; typedef struct page *pgtable_t;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment