summaryrefslogtreecommitdiff
path: root/sys/arch/arm
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/arm
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/arm')
-rw-r--r--sys/arch/arm/arm/locore.S4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/arm/arm/locore.S b/sys/arch/arm/arm/locore.S
index 8ff3297b6ab..7055fafd225 100644
--- a/sys/arch/arm/arm/locore.S
+++ b/sys/arch/arm/arm/locore.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: locore.S,v 1.20 2020/03/11 13:24:16 deraadt Exp $ */
+/* $OpenBSD: locore.S,v 1.21 2020/05/17 13:48:30 deraadt Exp $ */
/* $NetBSD: locore.S,v 1.14 2003/04/20 16:21:40 thorpej Exp $ */
/*
@@ -251,6 +251,7 @@ ENTRY_NP(cpu_reset)
#endif /* OFW */
+#ifdef DDB
/*
* setjump + longjmp
*/
@@ -271,3 +272,4 @@ _C_LABEL(esym): .word _C_LABEL(end)
ENTRY_NP(abort)
b _C_LABEL(abort)
+#endif /* DDB */