From 28bdf866e39be5754cc2a11b6a5c2a0ab9d7f6d4 Mon Sep 17 00:00:00 2001 From: nwhitehorn Date: Mon, 23 Feb 2009 19:31:48 +0000 Subject: Fix comment: we write the trap vector to SPRG3, not SPRG0. --- sys/powerpc/aim/trap_subr.S | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/powerpc/aim') diff --git a/sys/powerpc/aim/trap_subr.S b/sys/powerpc/aim/trap_subr.S index 82cdf32..58e0663 100644 --- a/sys/powerpc/aim/trap_subr.S +++ b/sys/powerpc/aim/trap_subr.S @@ -288,7 +288,7 @@ CNAME(alitrap): mflr %r28 /* save LR */ mfcr %r29 /* save CR */ - /* Put our exception vector in SPRG0 */ + /* Put our exception vector in SPRG3 */ li %r31, EXC_ALI mtsprg3 %r31 @@ -360,7 +360,7 @@ CNAME(dsisize) = .-CNAME(dsitrap) * Preamble code for DSI/ISI traps */ disitrap: - /* Write the trap vector to SPRG0 by computing LR & 0xff00 */ + /* Write the trap vector to SPRG3 by computing LR & 0xff00 */ mflr %r1 andi. %r1,%r1,0xff00 mtsprg3 %r1 @@ -533,7 +533,7 @@ CNAME(breakpoint): * Now the kdb trap catching code. */ dbtrap: - /* Write the trap vector to SPRG0 by computing LR & 0xff00 */ + /* Write the trap vector to SPRG3 by computing LR & 0xff00 */ mflr %r1 andi. %r1,%r1,0xff00 mtsprg3 %r1 -- cgit v1.1