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/riscv64 | |
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/riscv64')
-rw-r--r-- | sys/arch/riscv64/riscv64/locore.S | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/riscv64/riscv64/locore.S b/sys/arch/riscv64/riscv64/locore.S index 8848ac3bdf1..f1f1f2e8be7 100644 --- a/sys/arch/riscv64/riscv64/locore.S +++ b/sys/arch/riscv64/riscv64/locore.S @@ -1,4 +1,4 @@ -/* $OpenBSD: locore.S,v 1.15 2022/12/02 12:27:08 jca Exp $ */ +/* $OpenBSD: locore.S,v 1.16 2023/12/10 16:56:02 deraadt Exp $ */ /*- * Copyright (c) 2015-2018 Ruslan Bukin <br@bsdpad.com> @@ -250,8 +250,9 @@ ENTRY(sigcode) mv a0, sp addi a0, a0, SF_SC li t0, SYS_sigreturn + .globl sigcodecall +sigcodecall: ecall - .globl sigcoderet sigcoderet: /* sigreturn failed, exit */ |