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
e2f5bda9
Commit
e2f5bda9
authored
Feb 09, 2009
by
Jeremy Fitzhardinge
Committed by
Jeremy Fitzhardinge
Feb 11, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x86: define pud_flags and pud_large properly to allow non-PAE builds
parent
e42778de
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
arch/x86/include/asm/page_types.h
arch/x86/include/asm/page_types.h
+5
-5
arch/x86/include/asm/pgtable.h
arch/x86/include/asm/pgtable.h
+6
-1
No files found.
arch/x86/include/asm/page_types.h
View file @
e2f5bda9
...
@@ -90,11 +90,6 @@ static inline pudval_t native_pud_val(pud_t pud)
...
@@ -90,11 +90,6 @@ static inline pudval_t native_pud_val(pud_t pud)
#if PAGETABLE_LEVELS > 2
#if PAGETABLE_LEVELS > 2
typedef
struct
{
pmdval_t
pmd
;
}
pmd_t
;
typedef
struct
{
pmdval_t
pmd
;
}
pmd_t
;
static
inline
pudval_t
pud_flags
(
pud_t
pud
)
{
return
native_pud_val
(
pud
)
&
PTE_FLAGS_MASK
;
}
static
inline
pmd_t
native_make_pmd
(
pmdval_t
val
)
static
inline
pmd_t
native_make_pmd
(
pmdval_t
val
)
{
{
return
(
pmd_t
)
{
val
};
return
(
pmd_t
)
{
val
};
...
@@ -113,6 +108,11 @@ static inline pmdval_t native_pmd_val(pmd_t pmd)
...
@@ -113,6 +108,11 @@ static inline pmdval_t native_pmd_val(pmd_t pmd)
}
}
#endif
#endif
static
inline
pudval_t
pud_flags
(
pud_t
pud
)
{
return
native_pud_val
(
pud
)
&
PTE_FLAGS_MASK
;
}
static
inline
pmdval_t
pmd_flags
(
pmd_t
pmd
)
static
inline
pmdval_t
pmd_flags
(
pmd_t
pmd
)
{
{
return
native_pmd_val
(
pmd
)
&
PTE_FLAGS_MASK
;
return
native_pmd_val
(
pmd
)
&
PTE_FLAGS_MASK
;
...
...
arch/x86/include/asm/pgtable.h
View file @
e2f5bda9
...
@@ -398,7 +398,7 @@ static inline unsigned long pmd_pfn(pmd_t pmd)
...
@@ -398,7 +398,7 @@ static inline unsigned long pmd_pfn(pmd_t pmd)
static
inline
int
pud_large
(
pud_t
pud
)
static
inline
int
pud_large
(
pud_t
pud
)
{
{
return
(
pud_
flags
(
pud
)
&
(
_PAGE_PSE
|
_PAGE_PRESENT
))
==
return
(
pud_
val
(
pud
)
&
(
_PAGE_PSE
|
_PAGE_PRESENT
))
==
(
_PAGE_PSE
|
_PAGE_PRESENT
);
(
_PAGE_PSE
|
_PAGE_PRESENT
);
}
}
...
@@ -406,6 +406,11 @@ static inline int pud_bad(pud_t pud)
...
@@ -406,6 +406,11 @@ static inline int pud_bad(pud_t pud)
{
{
return
(
pud_flags
(
pud
)
&
~
(
_KERNPG_TABLE
|
_PAGE_USER
))
!=
0
;
return
(
pud_flags
(
pud
)
&
~
(
_KERNPG_TABLE
|
_PAGE_USER
))
!=
0
;
}
}
#else
static
inline
int
pud_large
(
pud_t
pud
)
{
return
0
;
}
#endif
/* PAGETABLE_LEVELS > 2 */
#endif
/* PAGETABLE_LEVELS > 2 */
#if PAGETABLE_LEVELS > 3
#if PAGETABLE_LEVELS > 3
...
...
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