Module Name: src
Committed By: uwe
Date: Wed Feb 28 21:00:02 UTC 2018
Modified Files:
src/lib/libc/arch/powerpc: genassym.cf
Log Message:
PIC code clobbers %r30 so we need to update the saved oucp with
caller's %r30 manually. Makes old context happy when it needs to do
more function calls after restore.
(oops, forgot to commit this along with swapcontext.S)
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/lib/libc/arch/powerpc/genassym.cf
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/arch/powerpc/genassym.cf
diff -u src/lib/libc/arch/powerpc/genassym.cf:1.4 src/lib/libc/arch/powerpc/genassym.cf:1.5
--- src/lib/libc/arch/powerpc/genassym.cf:1.4 Fri Aug 30 21:28:59 2013
+++ src/lib/libc/arch/powerpc/genassym.cf Wed Feb 28 21:00:02 2018
@@ -1,4 +1,4 @@
-# $NetBSD: genassym.cf,v 1.4 2013/08/30 21:28:59 matt Exp $
+# $NetBSD: genassym.cf,v 1.5 2018/02/28 21:00:02 uwe Exp $
#
# Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -44,6 +44,7 @@ define CALLFRAME_R31 offsetof(struct cal
define UC_GREGS_R1 offsetof(ucontext_t, uc_mcontext.__gregs[_REG_R1])
define UC_GREGS_R3 offsetof(ucontext_t, uc_mcontext.__gregs[_REG_R3])
+define UC_GREGS_R30 offsetof(ucontext_t, uc_mcontext.__gregs[_REG_R30])
define UC_GREGS_PC offsetof(ucontext_t, uc_mcontext.__gregs[_REG_PC])
define SIG_BLOCK SIG_BLOCK