Module Name: src
Committed By: skrll
Date: Tue Apr 30 12:24:32 UTC 2013
Modified Files:
src/lib/libc/arch/arm: genassym.cf
Log Message:
Don't hardcode offset in assembler. This ensures the return value in the
context is the correct value (0) on earm*
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libc/arch/arm/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/arm/genassym.cf
diff -u src/lib/libc/arch/arm/genassym.cf:1.1 src/lib/libc/arch/arm/genassym.cf:1.2
--- src/lib/libc/arch/arm/genassym.cf:1.1 Thu Sep 27 11:20:20 2012
+++ src/lib/libc/arch/arm/genassym.cf Tue Apr 30 12:24:31 2013
@@ -1,4 +1,4 @@
-# $NetBSD: genassym.cf,v 1.1 2012/09/27 11:20:20 skrll Exp $
+# $NetBSD: genassym.cf,v 1.2 2013/04/30 12:24:31 skrll Exp $
#
# Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -32,5 +32,6 @@
include <sys/types.h>
include <ucontext.h>
+define _UC_REGS_R0 offsetof(ucontext_t, uc_mcontext.__gregs[_REG_R0])
define _UC_REGS_SP offsetof(ucontext_t, uc_mcontext.__gregs[_REG_SP])
define _UC_REGS_PC offsetof(ucontext_t, uc_mcontext.__gregs[_REG_PC])