summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Tkhai <tkhai@yandex.ru>2013-08-02 19:23:18 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-10-13 18:14:29 -0700
commit1e0a3f6f4660aca6578d768038972cd12727f64d (patch)
treed1d36b2a07de8a5a1a97ac1cadefc177bc907470
parent47da75cd1eccef5e203c326bcf74a70701d4f158 (diff)
downloadlwn-1e0a3f6f4660aca6578d768038972cd12727f64d.tar.gz
lwn-1e0a3f6f4660aca6578d768038972cd12727f64d.zip
sparc64: Fix ITLB handler of null page
[ Upstream commit 1c2696cdaad84580545a2e9c0879ff597880b1a9 ] 1)Use kvmap_itlb_longpath instead of kvmap_dtlb_longpath. 2)Handle page #0 only, don't handle page #1: bleu -> blu (KERNBASE is 0x400000, so #1 does not exist too. But everything is possible in the future. Fix to not to have problems later.) 3)Remove unused kvmap_itlb_nonlinear. Signed-off-by: Kirill Tkhai <tkhai@yandex.ru> CC: David Miller <davem@davemloft.net> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--arch/sparc/kernel/ktlb.S3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/sparc/kernel/ktlb.S b/arch/sparc/kernel/ktlb.S
index 0746e5e32b37..fde5a419cf27 100644
--- a/arch/sparc/kernel/ktlb.S
+++ b/arch/sparc/kernel/ktlb.S
@@ -25,11 +25,10 @@ kvmap_itlb:
*/
kvmap_itlb_4v:
-kvmap_itlb_nonlinear:
/* Catch kernel NULL pointer calls. */
sethi %hi(PAGE_SIZE), %g5
cmp %g4, %g5
- bleu,pn %xcc, kvmap_dtlb_longpath
+ blu,pn %xcc, kvmap_itlb_longpath
nop
KERN_TSB_LOOKUP_TL1(%g4, %g6, %g5, %g1, %g2, %g3, kvmap_itlb_load)