summaryrefslogtreecommitdiff
path: root/sys/arch/sh
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2023-12-10 16:56:03 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2023-12-10 16:56:03 +0000
commitda37c9e03b24c9cc2db751140dd6cf004ddc04fb (patch)
tree4342d642944789e0f81e8b89e74cf5baf253cad7 /sys/arch/sh
parent554b5050f9716b60f4c464fa47c45e44d2ec17f4 (diff)
Add a new label "sigcodecall" inside every sigtramp definition, directly
in front of the syscall instruction. This is used to calculate the start of the syscall for SYS_sigreturn and pinned system calls. ok kettenis
Diffstat (limited to 'sys/arch/sh')
-rw-r--r--sys/arch/sh/sh/locore_subr.S4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/sh/sh/locore_subr.S b/sys/arch/sh/sh/locore_subr.S
index 342868128b0..2bd371ff887 100644
--- a/sys/arch/sh/sh/locore_subr.S
+++ b/sys/arch/sh/sh/locore_subr.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: locore_subr.S,v 1.17 2023/10/24 13:20:10 claudio Exp $ */
+/* $OpenBSD: locore_subr.S,v 1.18 2023/12/10 16:56:02 deraadt Exp $ */
/* $NetBSD: locore_subr.S,v 1.28 2006/01/23 22:52:09 uwe Exp $ */
/*
@@ -497,6 +497,8 @@ NENTRY(proc_trampoline)
NENTRY(sigcode)
mov r15, r4 /* get pointer to sigcontext */
mov.l .L_SYS_sigreturn, r0
+ .globl sigcodecall
+sigcodecall:
trapa #0x80 /* and call sigreturn() */
.globl sigcoderet
sigcoderet: