Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
1dfc07aa
Commit
1dfc07aa
authored
Feb 08, 2009
by
Jeremy Fitzhardinge
Committed by
Jeremy Fitzhardinge
Feb 11, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x86: move 2 and 3 level asm-generic defs into page-defs
Signed-off-by:
Jeremy Fitzhardinge
<
jeremy@goop.org
>
parent
51c78eb3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
arch/x86/include/asm/page.h
arch/x86/include/asm/page.h
+0
-4
arch/x86/include/asm/page_types.h
arch/x86/include/asm/page_types.h
+4
-0
No files found.
arch/x86/include/asm/page.h
View file @
1dfc07aa
...
...
@@ -58,8 +58,6 @@ static inline pudval_t native_pud_val(pud_t pud)
return
pud
.
pud
;
}
#else
/* PAGETABLE_LEVELS == 3 */
#include <asm-generic/pgtable-nopud.h>
static
inline
pudval_t
native_pud_val
(
pud_t
pud
)
{
return
native_pgd_val
(
pud
.
pgd
);
...
...
@@ -82,8 +80,6 @@ static inline pmdval_t native_pmd_val(pmd_t pmd)
}
#else
/* PAGETABLE_LEVELS == 2 */
#include <asm-generic/pgtable-nopmd.h>
static
inline
pmdval_t
native_pmd_val
(
pmd_t
pmd
)
{
return
native_pgd_val
(
pmd
.
pud
.
pgd
);
...
...
arch/x86/include/asm/page_types.h
View file @
1dfc07aa
...
...
@@ -53,10 +53,14 @@ typedef struct { pgprotval_t pgprot; } pgprot_t;
#if PAGETABLE_LEVELS > 3
typedef
struct
{
pudval_t
pud
;
}
pud_t
;
#else
#include <asm-generic/pgtable-nopud.h>
#endif
#if PAGETABLE_LEVELS > 2
typedef
struct
{
pmdval_t
pmd
;
}
pmd_t
;
#else
#include <asm-generic/pgtable-nopmd.h>
#endif
typedef
struct
page
*
pgtable_t
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment