Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/arch/alpha/sys CFI: Saved RA needs to point to the ...
details: https://anonhg.NetBSD.org/src/rev/380b39da05c2
branches: trunk
changeset: 1024764:380b39da05c2
user: thorpej <thorpej%NetBSD.org@localhost>
date: Wed Nov 03 04:52:51 2021 +0000
description:
CFI: Saved RA needs to point to the PC slot in the ucontext_t.
diffstat:
lib/libc/arch/alpha/sys/__sigtramp2.S | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 58b057e601f7 -r 380b39da05c2 lib/libc/arch/alpha/sys/__sigtramp2.S
--- a/lib/libc/arch/alpha/sys/__sigtramp2.S Wed Nov 03 03:58:31 2021 +0000
+++ b/lib/libc/arch/alpha/sys/__sigtramp2.S Wed Nov 03 04:52:51 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: __sigtramp2.S,v 1.6 2021/11/03 03:58:31 thorpej Exp $ */
+/* $NetBSD: __sigtramp2.S,v 1.7 2021/11/03 04:52:51 thorpej Exp $ */
/*
* Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University.
@@ -40,7 +40,8 @@
* sp-> siginfo structure [0]
*/
-#define CFI_OFFSET(r) .cfi_offset r, r*8
+#define CFI_OFFSET_REG(n, r) .cfi_offset n, r*8
+#define CFI_OFFSET(r) CFI_OFFSET_REG(r, r)
.cfi_startproc simple
.cfi_signal_frame
@@ -71,7 +72,7 @@
CFI_OFFSET(_REG_T9)
CFI_OFFSET(_REG_T10)
CFI_OFFSET(_REG_T11)
- CFI_OFFSET(_REG_RA)
+ CFI_OFFSET_REG(_REG_RA, _REG_PC)
CFI_OFFSET(_REG_T12) /* a.k.a. _REG_PV */
CFI_OFFSET(_REG_AT)
CFI_OFFSET(_REG_GP)
Home |
Main Index |
Thread Index |
Old Index