projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61e19a3
)
x86: add gbpages support to lookup_address
author
Andi Kleen
<ak@suse.de>
Mon, 4 Feb 2008 15:48:09 +0000
(16:48 +0100)
committer
Ingo Molnar
<mingo@elte.hu>
Mon, 4 Feb 2008 15:48:09 +0000
(16:48 +0100)
[ tglx@linutronix.de: fix bootup crash on sparse mappings. ]
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/mm/pageattr.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/mm/pageattr.c
b/arch/x86/mm/pageattr.c
index 9be684e61dcb27452019348f1e48b4fbc4925a73..143fbafc948ae25c9c8added4a1a7534c0521d9f 100644
(file)
--- a/
arch/x86/mm/pageattr.c
+++ b/
arch/x86/mm/pageattr.c
@@
-209,6
+209,11
@@
pte_t *lookup_address(unsigned long address, int *level)
pud = pud_offset(pgd, address);
if (pud_none(*pud))
return NULL;
+
+ *level = PG_LEVEL_1G;
+ if (pud_large(*pud) || !pud_present(*pud))
+ return (pte_t *)pud;
+
pmd = pmd_offset(pud, address);
if (pmd_none(*pmd))
return NULL;