changeset 3173:bf81e386aeef

6492102 RESET_USER_RTT_REGS() checking is needed in OPL
author hyw
date Mon, 27 Nov 2006 11:21:25 -0800
parents 303483377c70
children 95c3e05e2071
files usr/src/uts/sun4u/cpu/opl_olympus_asm.s
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/uts/sun4u/cpu/opl_olympus_asm.s	Mon Nov 27 06:25:37 2006 -0800
+++ b/usr/src/uts/sun4u/cpu/opl_olympus_asm.s	Mon Nov 27 11:21:25 2006 -0800
@@ -1327,6 +1327,8 @@
 	 nop
 	RESET_WINREG(%g1)		! reset windows to prevent spills
 4:
+	RESET_USER_RTT_REGS(%g2, %g3, 5f)
+5:
 	mov	%g5, %g3		! pass SFSR to the 3rd arg
 	mov	%g6, %g2		! pass SFAR to the 2nd arg
 	set	opl_cpu_isync_tl1_error, %g1
@@ -1542,6 +1544,8 @@
 	 * %g2 = arg #1 already set above
 	 */
 opl_uger_panic_cmn:
+	RESET_USER_RTT_REGS(%g4, %g5, 1f)
+1:
 	rdpr	%tl, %g3			! arg #2
 	set	opl_cpu_urgent_error, %g1	! pc
 	sethi	%hi(sys_trap), %g5