aboutsummaryrefslogtreecommitdiff
path: root/sys/sparc64/include/asmacros.h
diff options
context:
space:
mode:
authorKen Smith <kensmith@FreeBSD.org>2004-01-27 15:02:18 +0000
committerKen Smith <kensmith@FreeBSD.org>2004-01-27 15:02:18 +0000
commit8ecb006f395e5c15ca49e14a782ef26e9e36e7ef (patch)
tree339f6102a580887cefa14473f5af78471ea88841 /sys/sparc64/include/asmacros.h
parent2720e4a16f0420e4ce3fc68faf11466131539526 (diff)
downloadsrc-8ecb006f395e5c15ca49e14a782ef26e9e36e7ef.tar.gz
src-8ecb006f395e5c15ca49e14a782ef26e9e36e7ef.zip
- Fix for sparc64 to use new __panic() function
Adapted from patch by: David Cornejo <dcornejo@firetide.com> Reviewed by: freebsd-sparc64 (harti) Approved by: rwatson (mentor)
Notes
Notes: svn path=/head/; revision=125081
Diffstat (limited to 'sys/sparc64/include/asmacros.h')
-rw-r--r--sys/sparc64/include/asmacros.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/sparc64/include/asmacros.h b/sys/sparc64/include/asmacros.h
index a0e317b218e4..9337983e91b0 100644
--- a/sys/sparc64/include/asmacros.h
+++ b/sys/sparc64/include/asmacros.h
@@ -101,8 +101,10 @@
.sect .rodata ; \
9: .asciz msg ; \
.previous ; \
- SET(9b, r1, %o0) ; \
- call panic ; \
+ SET(9b, r1, %o2) ; \
+ clr %o1 ; \
+ clr %o0 ; \
+ call __panic ; \
nop
#ifdef INVARIANTS