diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2007-10-11 14:36:52 -0400 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2007-10-11 14:36:52 -0400 |
commit | 8a13c4f972e6c107d8cff54de647544c00e25b41 (patch) | |
tree | bd1e291a935fe8420b270d0a4f8e9d3b7a8e1bd1 /arch/powerpc/kernel/head_40x.S | |
parent | f5d7d13cd96313a90f8d13fa5d6e0704f6d534ba (diff) |
[POWERPC] Use PAGE_OFFSET to tell if an address is user/kernel in SW TLB handlers
Move to using PAGE_OFFSET instead of TASK_SIZE or KERNELBASE value on
6xx/40x/44x/fsl-booke to determine if the faulting address is a kernel or
user space address. This mimics how the macro is_kernel_addr() works.
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel/head_40x.S')
-rw-r--r-- | arch/powerpc/kernel/head_40x.S | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/powerpc/kernel/head_40x.S b/arch/powerpc/kernel/head_40x.S index e312824bdd98..cfefc2df8f2a 100644 --- a/arch/powerpc/kernel/head_40x.S +++ b/arch/powerpc/kernel/head_40x.S | |||
@@ -289,7 +289,7 @@ label: | |||
289 | /* If we are faulting a kernel address, we have to use the | 289 | /* If we are faulting a kernel address, we have to use the |
290 | * kernel page tables. | 290 | * kernel page tables. |
291 | */ | 291 | */ |
292 | lis r11, TASK_SIZE@h | 292 | lis r11, PAGE_OFFSET@h |
293 | cmplw r10, r11 | 293 | cmplw r10, r11 |
294 | blt+ 3f | 294 | blt+ 3f |
295 | lis r11, swapper_pg_dir@h | 295 | lis r11, swapper_pg_dir@h |
@@ -481,7 +481,7 @@ label: | |||
481 | /* If we are faulting a kernel address, we have to use the | 481 | /* If we are faulting a kernel address, we have to use the |
482 | * kernel page tables. | 482 | * kernel page tables. |
483 | */ | 483 | */ |
484 | lis r11, TASK_SIZE@h | 484 | lis r11, PAGE_OFFSET@h |
485 | cmplw r10, r11 | 485 | cmplw r10, r11 |
486 | blt+ 3f | 486 | blt+ 3f |
487 | lis r11, swapper_pg_dir@h | 487 | lis r11, swapper_pg_dir@h |
@@ -581,7 +581,7 @@ label: | |||
581 | /* If we are faulting a kernel address, we have to use the | 581 | /* If we are faulting a kernel address, we have to use the |
582 | * kernel page tables. | 582 | * kernel page tables. |
583 | */ | 583 | */ |
584 | lis r11, TASK_SIZE@h | 584 | lis r11, PAGE_OFFSET@h |
585 | cmplw r10, r11 | 585 | cmplw r10, r11 |
586 | blt+ 3f | 586 | blt+ 3f |
587 | lis r11, swapper_pg_dir@h | 587 | lis r11, swapper_pg_dir@h |