summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2021-05-14 00:57:04 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2021-05-14 00:57:04 +0000
commitdb4e39a9384f85b00ac3ada3473ba59e2c925ccc (patch)
tree5b9dd4f28457a32547f2d02b384f13889731ca1a /lib
parent92e02d567c9de7d39b4a5b2e441725dc44698bf3 (diff)
Fix regression for _setjmp, fucntion does not use stack and adjusting
it causes restored stack to be incorrect.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/arch/riscv64/gen/_setjmp.S4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/libc/arch/riscv64/gen/_setjmp.S b/lib/libc/arch/riscv64/gen/_setjmp.S
index 85bbe0bd716..724ba8693e9 100644
--- a/lib/libc/arch/riscv64/gen/_setjmp.S
+++ b/lib/libc/arch/riscv64/gen/_setjmp.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: _setjmp.S,v 1.2 2021/05/09 21:26:06 drahn Exp $ */
+/* $OpenBSD: _setjmp.S,v 1.3 2021/05/14 00:57:03 drahn Exp $ */
/*
* Copyright (c) 2020 Dale Rahn <drahn@openbsd.org>
*
@@ -20,7 +20,6 @@
#include <machine/setjmp.h>
ENTRY(_setjmp)
- addi sp, sp, -32
RETGUARD_SETUP(_setjmp, t6)
sd sp, (1 * 8)(a0)
@@ -60,7 +59,6 @@ ENTRY(_setjmp)
/* Return value */
mv a0, x0
RETGUARD_CHECK(_setjmp, t6)
- addi sp, sp, 32
ret
END_STRONG(_setjmp)