summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2020-05-17 13:48:32 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2020-05-17 13:48:32 +0000
commit70903543a5ed1773336c448558289d7fde9f2e04 (patch)
tree0a8ffd44b546a67356893ab20be45cff922493cf /sys/arch/sparc64
parent07a636a18ebb1d3e2d4677a55c4d0ad02b5b8aa5 (diff)
Put setjmp+longjmp inside #ifdef DDB the only kernel-side user.
This shrinks the ramdisks a tiny bit.
Diffstat (limited to 'sys/arch/sparc64')
-rw-r--r--sys/arch/sparc64/sparc64/locore.s4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/sparc64/sparc64/locore.s b/sys/arch/sparc64/sparc64/locore.s
index 19e049350f7..de59a9bb3c6 100644
--- a/sys/arch/sparc64/sparc64/locore.s
+++ b/sys/arch/sparc64/sparc64/locore.s
@@ -1,4 +1,4 @@
-/* $OpenBSD: locore.s,v 1.187 2019/11/05 08:17:21 mpi Exp $ */
+/* $OpenBSD: locore.s,v 1.188 2020/05/17 13:48:31 deraadt Exp $ */
/* $NetBSD: locore.s,v 1.137 2001/08/13 06:10:10 jdolecek Exp $ */
/*
@@ -7676,6 +7676,7 @@ ENTRY(delay) ! %o0 = n
nop
END(delay)
+#ifdef DDB
ENTRY(setjmp)
save %sp, -CC64FSZ, %sp ! Need a frame to return to.
flushw
@@ -7694,6 +7695,7 @@ ENTRY(longjmp)
ret
restore %i2, 0, %o0
END(longjmp)
+#endif /* DDB */
#ifdef DDB
/*