summaryrefslogtreecommitdiffstats
path: root/sys/sparc64
diff options
context:
space:
mode:
authorkensmith <kensmith@FreeBSD.org>2004-01-27 15:02:18 +0000
committerkensmith <kensmith@FreeBSD.org>2004-01-27 15:02:18 +0000
commit49ae97d67445a766035a5b74d754648a099339c9 (patch)
tree339f6102a580887cefa14473f5af78471ea88841 /sys/sparc64
parent8efc534d9454d18d3f1c7b04493c2c5cd5d81270 (diff)
downloadFreeBSD-src-49ae97d67445a766035a5b74d754648a099339c9.zip
FreeBSD-src-49ae97d67445a766035a5b74d754648a099339c9.tar.gz
- 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)
Diffstat (limited to 'sys/sparc64')
-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 a0e317b..9337983 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
OpenPOWER on IntegriCloud