Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 60b96223 authored by Benjamin Krill's avatar Benjamin Krill Committed by Benjamin Herrenschmidt
Browse files

powerpc/book3e: Fix check for linear mapping in TLB miss handler



The previous code added wrong TLBs and causes machine check errors if
a driver accessed passed the end of the linear mapping instead of
a clean page fault.

Signed-off-by: default avatarRalph E. Bellofatto <ralphbel@us.ibm.com>
Signed-off-by: default avatarBenjamin Krill <ben@codiert.org>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent eb3b80f6
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -1091,7 +1091,8 @@ tlb_load_linear:
	ld	r11,PACATOC(r13)
	ld	r11,PACATOC(r13)
	ld	r11,linear_map_top@got(r11)
	ld	r11,linear_map_top@got(r11)
	ld	r10,0(r11)
	ld	r10,0(r11)
	cmpld	cr0,r10,r16
	tovirt(10,10)
	cmpld	cr0,r16,r10
	bge	tlb_load_linear_fault
	bge	tlb_load_linear_fault


	/* MAS1 need whole new setup. */
	/* MAS1 need whole new setup. */