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: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
9542ada803
commit
28dd033f43
|
@ -510,7 +510,7 @@ static int is_kernel(unsigned long pfn)
|
|||
unsigned long pg_addresss = pfn << PAGE_SHIFT;
|
||||
|
||||
if (pg_addresss >= (unsigned long) __pa(_text) &&
|
||||
pg_addresss <= (unsigned long) __pa(_end))
|
||||
pg_addresss < (unsigned long) __pa(_end))
|
||||
return 1;
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue