diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2014-02-22 18:10:40 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2014-02-22 18:10:40 +0000 |
commit | 5e5285b1e7751327ad7fb1b5441a5128d92a54ec (patch) | |
tree | 9282cec8b38d9df166c0125d9536659b0b74e863 /sys/arch/mips64 | |
parent | feb8d24cfbd4204435c30bef3baebb5a5ba4a634 (diff) |
Increase _STACKALIGNBYTES to 15 (was 7), and make sure the stack is aligned
to a 16 byte boundary in csu (similar to what the other arches where
_STACKALIGNBYTES != _ALIGNBYTES do).
This is necessary for long double variables on the stack to be correctly
aligned.
Diffstat (limited to 'sys/arch/mips64')
-rw-r--r-- | sys/arch/mips64/include/_types.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/mips64/include/_types.h b/sys/arch/mips64/include/_types.h index ee725da21be..ed4e87c136b 100644 --- a/sys/arch/mips64/include/_types.h +++ b/sys/arch/mips64/include/_types.h @@ -1,4 +1,4 @@ -/* $OpenBSD: _types.h,v 1.17 2013/12/18 16:41:01 deraadt Exp $ */ +/* $OpenBSD: _types.h,v 1.18 2014/02/22 18:10:39 miod Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -46,7 +46,7 @@ * (within reasonable limits). */ #define _ALIGNBYTES 7 -#define _STACKALIGNBYTES _ALIGNBYTES +#define _STACKALIGNBYTES 15 #define _ALIGN(p) (((unsigned long)(p) + _ALIGNBYTES) & ~_ALIGNBYTES) #define _ALIGNED_POINTER(p,t) ((((unsigned long)(p)) & (sizeof(t) - 1)) == 0) |