Module Name: src
Committed By: matt
Date: Thu Sep 3 06:57:11 UTC 2009
Modified Files:
src/lib/libc/arch/mips [matt-nb5-mips64]: genassym.cf
Log Message:
Make sure STACK_T_SIZE is dual-register_t aligned.
To generate a diff of this commit:
cvs rdiff -u -r1.1.2.2 -r1.1.2.3 src/lib/libc/arch/mips/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/mips/genassym.cf
diff -u src/lib/libc/arch/mips/genassym.cf:1.1.2.2 src/lib/libc/arch/mips/genassym.cf:1.1.2.3
--- src/lib/libc/arch/mips/genassym.cf:1.1.2.2 Tue Aug 18 06:57:52 2009
+++ src/lib/libc/arch/mips/genassym.cf Thu Sep 3 06:57:11 2009
@@ -1,4 +1,4 @@
-# $NetBSD: genassym.cf,v 1.1.2.2 2009/08/18 06:57:52 matt Exp $
+# $NetBSD: genassym.cf,v 1.1.2.3 2009/09/03 06:57:11 matt Exp $
#
# Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -78,7 +78,7 @@
define SIGINFO_SIZE sizeof(siginfo_t)
-define STACK_T_SIZE sizeof(stack_t)
+define STACK_T_SIZE ((sizeof(stack_t) + 2 * sizeof(register_t) - 1) & -(2 * sizeof(register_t)))
define _OFFSETOF_STACK_T_SP offsetof(stack_t, ss_sp)
define _OFFSETOF_STACK_T_SIZE offsetof(stack_t, ss_size)
define _OFFSETOF_STACK_T_FLAGS offsetof(stack_t, ss_flags)