diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2023-12-10 16:56:03 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2023-12-10 16:56:03 +0000 |
commit | da37c9e03b24c9cc2db751140dd6cf004ddc04fb (patch) | |
tree | 4342d642944789e0f81e8b89e74cf5baf253cad7 /sys/arch/alpha | |
parent | 554b5050f9716b60f4c464fa47c45e44d2ec17f4 (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/alpha')
-rw-r--r-- | sys/arch/alpha/alpha/locore.s | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/alpha/alpha/locore.s b/sys/arch/alpha/alpha/locore.s index 1bbf06a512a..6b5f09767de 100644 --- a/sys/arch/alpha/alpha/locore.s +++ b/sys/arch/alpha/alpha/locore.s @@ -1,4 +1,4 @@ -/* $OpenBSD: locore.s,v 1.53 2023/12/06 06:15:33 miod Exp $ */ +/* $OpenBSD: locore.s,v 1.54 2023/12/10 16:56:01 deraadt Exp $ */ /* $NetBSD: locore.s,v 1.94 2001/04/26 03:10:44 ross Exp $ */ /*- @@ -202,6 +202,8 @@ NESTED(sigcode,0,0,ra,0,0) ldq a0, 0(sp) /* get the sigcontext pointer */ lda sp, 16(sp) ldiq v0, SYS_sigreturn /* and call sigreturn() with it. */ + .globl sigcodecall +sigcodecall: call_pal PAL_OSF1_callsys .globl sigcoderet sigcoderet: |