aboutsummaryrefslogtreecommitdiff
path: root/sys/powerpc/aim
diff options
context:
space:
mode:
authorNathan Whitehorn <nwhitehorn@FreeBSD.org>2009-02-23 19:31:48 +0000
committerNathan Whitehorn <nwhitehorn@FreeBSD.org>2009-02-23 19:31:48 +0000
commit539fe40650937944821593c2a4d409ab11633862 (patch)
tree51cc0a3f08f98d9a1ad722d6f3a83c554f9ea811 /sys/powerpc/aim
parent200dcf9a93056cff9ee8a6bd2f18d0ee5e9728fb (diff)
downloadsrc-539fe40650937944821593c2a4d409ab11633862.tar.gz
src-539fe40650937944821593c2a4d409ab11633862.zip
Fix comment: we write the trap vector to SPRG3, not SPRG0.
Notes
Notes: svn path=/head/; revision=188951
Diffstat (limited to 'sys/powerpc/aim')
-rw-r--r--sys/powerpc/aim/trap_subr.S6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/powerpc/aim/trap_subr.S b/sys/powerpc/aim/trap_subr.S
index 82cdf3237b8d..58e0663d82a1 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