Commit 28dd033f authored by Suresh Siddha's avatar Suresh Siddha Committed by Ingo Molnar

x86: fix pagetable init 64-bit breakage

Fix _end alignment check - can trigger a crash if _end happens to be
on a page boundary.
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 9542ada8
...@@ -510,7 +510,7 @@ static int is_kernel(unsigned long pfn) ...@@ -510,7 +510,7 @@ static int is_kernel(unsigned long pfn)
unsigned long pg_addresss = pfn << PAGE_SHIFT; unsigned long pg_addresss = pfn << PAGE_SHIFT;
if (pg_addresss >= (unsigned long) __pa(_text) && if (pg_addresss >= (unsigned long) __pa(_text) &&
pg_addresss <= (unsigned long) __pa(_end)) pg_addresss < (unsigned long) __pa(_end))
return 1; return 1;
return 0; return 0;
......
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