projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07cf89c
)
x86: cpa selftest, skip non present entries
author
Thomas Gleixner
<tglx@linutronix.de>
Mon, 4 Feb 2008 15:48:08 +0000
(16:48 +0100)
committer
Ingo Molnar
<mingo@elte.hu>
Mon, 4 Feb 2008 15:48:08 +0000
(16:48 +0100)
pud and pmd entries in the RAM area might be marked as non present.
Do not try to modify them in the selftest.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/mm/pageattr-test.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/mm/pageattr-test.c
b/arch/x86/mm/pageattr-test.c
index 7573e786d2f202d98754f2a484220c75b1250c31..398f3a578dde446e292109a6463409f1b70d3415 100644
(file)
--- a/
arch/x86/mm/pageattr-test.c
+++ b/
arch/x86/mm/pageattr-test.c
@@
-137,7
+137,8
@@
static __init int exercise_pageattr(void)
for (k = 0; k < len[i]; k++) {
pte = lookup_address(addr[i] + k*PAGE_SIZE, &level);
- if (!pte || pgprot_val(pte_pgprot(*pte)) == 0) {
+ if (!pte || pgprot_val(pte_pgprot(*pte)) == 0 ||
+ !(pte_val(*pte) & _PAGE_PRESENT)) {
addr[i] = 0;
break;
}