Skip to contentSkip to conversation

Fix physical address range check comparision and force address to be virtual address

PATCH New Benjamin Krill 1 participant 1 message Feb 27, 2014 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix physical address range check comparision and force address to be virtual address

The previous code added wrong TLBs and causes machine check errors.

---
 arch/powerpc/mm/tlb_low_64e.S | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
arch/powerpc/mm/tlb_low_64e.S +2 -1
index c95eb32..6bf5050 100644
@@ -1091,7 +1091,8 @@ tlb_load_linear:
 	ld	r11,PACATOC(r13)
 	ld	r11,linear_map_top@got(r11)
 	ld	r10,0(r11)
-	cmpld	cr0,r10,r16
+	tovirt(10,10)
+	cmpld	cr0,r16,r10
 	bge	tlb_load_linear_fault
 
 	/* MAS1 need whole new setup. */
Signature · 1 line
1.8.5.3