summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/arch/alpha/include/_types.h7
-rw-r--r--sys/arch/amd64/include/_types.h7
-rw-r--r--sys/arch/arm/include/_types.h7
-rw-r--r--sys/arch/hppa/include/_types.h7
-rw-r--r--sys/arch/hppa64/include/_types.h7
-rw-r--r--sys/arch/i386/include/_types.h7
-rw-r--r--sys/arch/ia64/include/_types.h7
-rw-r--r--sys/arch/m68k/include/_types.h7
-rw-r--r--sys/arch/m88k/include/_types.h7
-rw-r--r--sys/arch/mips64/include/_types.h7
-rw-r--r--sys/arch/powerpc/include/_types.h7
-rw-r--r--sys/arch/sh/include/_types.h7
-rw-r--r--sys/arch/sparc/include/_types.h7
-rw-r--r--sys/arch/sparc64/include/_types.h7
-rw-r--r--sys/arch/vax/include/_types.h7
15 files changed, 60 insertions, 45 deletions
diff --git a/sys/arch/alpha/include/_types.h b/sys/arch/alpha/include/_types.h
index 76b7de3711d..987bd3650c4 100644
--- a/sys/arch/alpha/include/_types.h
+++ b/sys/arch/alpha/include/_types.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: _types.h,v 1.20 2013/07/05 19:46:27 guenther Exp $ */
+/* $OpenBSD: _types.h,v 1.21 2013/12/18 16:41:01 deraadt Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -51,8 +51,9 @@ typedef struct label_t {
* This does not reflect the optimal alignment, just the possibility
* (within reasonable limits).
*/
-#define _ALIGNBYTES 7
-#define _ALIGN(p) (((unsigned long)(p) + _ALIGNBYTES) & ~_ALIGNBYTES)
+#define _ALIGNBYTES 7
+#define _STACKALIGNBYTES _ALIGNBYTES
+#define _ALIGN(p) (((unsigned long)(p) + _ALIGNBYTES) & ~_ALIGNBYTES)
#define _ALIGNED_POINTER(p,t) ((((unsigned long)(p)) & (sizeof(t) - 1)) == 0)
/* 7.18.1.1 Exact-width integer types */
diff --git a/sys/arch/amd64/include/_types.h b/sys/arch/amd64/include/_types.h
index f3c8f651ccb..7f6fe666497 100644
--- a/sys/arch/amd64/include/_types.h
+++ b/sys/arch/amd64/include/_types.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: _types.h,v 1.13 2013/07/05 19:46:27 guenther Exp $ */
+/* $OpenBSD: _types.h,v 1.14 2013/12/18 16:41:01 deraadt Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -45,8 +45,9 @@
* This does not reflect the optimal alignment, just the possibility
* (within reasonable limits).
*/
-#define _ALIGNBYTES (sizeof(long) - 1)
-#define _ALIGN(p) (((unsigned long)(p) + _ALIGNBYTES) &~_ALIGNBYTES)
+#define _ALIGNBYTES (sizeof(long) - 1)
+#define _STACKALIGNBYTES 15
+#define _ALIGN(p) (((unsigned long)(p) + _ALIGNBYTES) &~_ALIGNBYTES)
#define _ALIGNED_POINTER(p,t) 1
#if defined(_KERNEL)
diff --git a/sys/arch/arm/include/_types.h b/sys/arch/arm/include/_types.h
index 65a72c37f81..14a3c7514a3 100644
--- a/sys/arch/arm/include/_types.h
+++ b/sys/arch/arm/include/_types.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: _types.h,v 1.14 2013/07/13 17:28:35 deraadt Exp $ */
+/* $OpenBSD: _types.h,v 1.15 2013/12/18 16:41:01 deraadt Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -51,8 +51,9 @@ typedef struct label_t {
* This does not reflect the optimal alignment, just the possibility
* (within reasonable limits).
*/
-#define _ALIGNBYTES (sizeof(int) - 1)
-#define _ALIGN(p) (((unsigned long)(p) + _ALIGNBYTES) & ~_ALIGNBYTES)
+#define _ALIGNBYTES (sizeof(int) - 1)
+#define _STACKALIGNBYTES 7
+#define _ALIGN(p) (((unsigned long)(p) + _ALIGNBYTES) & ~_ALIGNBYTES)
#define _ALIGNED_POINTER(p,t) ((((unsigned long)(p)) & (sizeof(t) - 1)) == 0)
/* 7.18.1.1 Exact-width integer types */
diff --git a/sys/arch/hppa/include/_types.h b/sys/arch/hppa/include/_types.h
index 9aaeb65ca20..981da258b25 100644
--- a/sys/arch/hppa/include/_types.h
+++ b/sys/arch/hppa/include/_types.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: _types.h,v 1.22 2013/07/13 17:28:36 deraadt Exp $ */
+/* $OpenBSD: _types.h,v 1.23 2013/12/18 16:41:01 deraadt Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -51,8 +51,9 @@ typedef struct label_t {
* This does not reflect the optimal alignment, just the possibility
* (within reasonable limits).
*/
-#define _ALIGNBYTES 7
-#define _ALIGN(p) (((unsigned long)(p) + _ALIGNBYTES) & ~_ALIGNBYTES)
+#define _ALIGNBYTES 7
+#define _STACKALIGNBYTES _ALIGNBYTES
+#define _ALIGN(p) (((unsigned long)(p) + _ALIGNBYTES) & ~_ALIGNBYTES)
#define _ALIGNED_POINTER(p,t) ((((unsigned long)(p)) & (sizeof(t) - 1)) == 0)
typedef unsigned long hppa_hpa_t; /* XXX */
diff --git a/sys/arch/hppa64/include/_types.h b/sys/arch/hppa64/include/_types.h
index 2827976fa7c..6388a389f82 100644
--- a/sys/arch/hppa64/include/_types.h
+++ b/sys/arch/hppa64/include/_types.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: _types.h,v 1.15 2013/07/13 17:28:36 deraadt Exp $ */
+/* $OpenBSD: _types.h,v 1.16 2013/12/18 16:41:01 deraadt Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -51,8 +51,9 @@ typedef struct label_t {
* This does not reflect the optimal alignment, just the possibility
* (within reasonable limits).
*/
-#define _ALIGNBYTES 7
-#define _ALIGN(p) (((unsigned long)(p) + _ALIGNBYTES) & ~_ALIGNBYTES)
+#define _ALIGNBYTES 7
+#define _STACKALIGNBYTES _ALIGNBYTES
+#define _ALIGN(p) (((unsigned long)(p) + _ALIGNBYTES) & ~_ALIGNBYTES)
#define _ALIGNED_POINTER(p,t) ((((unsigned long)(p)) & (sizeof(t) - 1)) == 0)
typedef unsigned long hppa_hpa_t; /* XXX */
diff --git a/sys/arch/i386/include/_types.h b/sys/arch/i386/include/_types.h
index 02e6b6116d9..02684eabf67 100644
--- a/sys/arch/i386/include/_types.h
+++ b/sys/arch/i386/include/_types.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: _types.h,v 1.19 2013/07/13 17:28:36 deraadt Exp $ */
+/* $OpenBSD: _types.h,v 1.20 2013/12/18 16:41:01 deraadt Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -45,8 +45,9 @@
* This does not reflect the optimal alignment, just the possibility
* (within reasonable limits).
*/
-#define _ALIGNBYTES (sizeof(int) - 1)
-#define _ALIGN(p) (((unsigned long)(p) + _ALIGNBYTES) & ~_ALIGNBYTES)
+#define _ALIGNBYTES (sizeof(int) - 1)
+#define _STACKALIGNBYTES 15
+#define _ALIGN(p) (((unsigned long)(p) + _ALIGNBYTES) & ~_ALIGNBYTES)
#define _ALIGNED_POINTER(p,t) 1
#if defined(_KERNEL)
diff --git a/sys/arch/ia64/include/_types.h b/sys/arch/ia64/include/_types.h
index f6ec320c501..7c8d61023cd 100644
--- a/sys/arch/ia64/include/_types.h
+++ b/sys/arch/ia64/include/_types.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: _types.h,v 1.7 2013/07/05 19:46:27 guenther Exp $ */
+/* $OpenBSD: _types.h,v 1.8 2013/12/18 16:41:01 deraadt Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -51,8 +51,9 @@ typedef struct label_t {
* This does not reflect the optimal alignment, just the possibility
* (within reasonable limits).
*/
-#define _ALIGNBYTES 15 /* XXX guess/assumption */
-#define _ALIGN(p) (((unsigned long)(p) + _ALIGNBYTES) & ~_ALIGNBYTES)
+#define _ALIGNBYTES 15 /* XXX guess/assumption */
+#define _STACKALIGNBYTES _ALIGNBYTES
+#define _ALIGN(p) (((unsigned long)(p) + _ALIGNBYTES) & ~_ALIGNBYTES)
#define _ALIGNED_POINTER(p,t) 1
diff --git a/sys/arch/m68k/include/_types.h b/sys/arch/m68k/include/_types.h
index be0eeab758c..c4c81954adc 100644
--- a/sys/arch/m68k/include/_types.h
+++ b/sys/arch/m68k/include/_types.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: _types.h,v 1.16 2013/07/13 17:28:36 deraadt Exp $ */
+/* $OpenBSD: _types.h,v 1.17 2013/12/18 16:41:01 deraadt Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -51,8 +51,9 @@ typedef struct label_t {
* This does not reflect the optimal alignment, just the possibility
* (within reasonable limits).
*/
-#define _ALIGNBYTES (sizeof(int) - 1)
-#define _ALIGN(p) (((unsigned long)(p) + _ALIGNBYTES) & ~_ALIGNBYTES)
+#define _ALIGNBYTES (sizeof(int) - 1)
+#define _STACKALIGNBYTES _ALIGNBYTES
+#define _ALIGN(p) (((unsigned long)(p) + _ALIGNBYTES) & ~_ALIGNBYTES)
#define _ALIGNED_POINTER(p,t) ((((unsigned long)(p)) & (sizeof(t) - 1)) == 0)
/* 7.18.1.1 Exact-width integer types */
diff --git a/sys/arch/m88k/include/_types.h b/sys/arch/m88k/include/_types.h
index 567c1c56ba2..7303d362122 100644
--- a/sys/arch/m88k/include/_types.h
+++ b/sys/arch/m88k/include/_types.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: _types.h,v 1.14 2013/07/13 17:28:36 deraadt Exp $ */
+/* $OpenBSD: _types.h,v 1.15 2013/12/18 16:41:01 deraadt Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -55,8 +55,9 @@ typedef struct label_t {
* XXX These are also used for aligning stack, which needs to be on a quad
* word boundary for 88k.
*/
-#define _ALIGNBYTES 15
-#define _ALIGN(p) (((unsigned long)(p) + _ALIGNBYTES) & ~_ALIGNBYTES)
+#define _ALIGNBYTES 15
+#define _STACKALIGNBYTES _ALIGNBYTES
+#define _ALIGN(p) (((unsigned long)(p) + _ALIGNBYTES) & ~_ALIGNBYTES)
#define _ALIGNED_POINTER(p,t) ((((unsigned long)(p)) & (sizeof(t) - 1)) == 0)
/* 7.18.1.1 Exact-width integer types */
diff --git a/sys/arch/mips64/include/_types.h b/sys/arch/mips64/include/_types.h
index 4127e2e707a..ee725da21be 100644
--- a/sys/arch/mips64/include/_types.h
+++ b/sys/arch/mips64/include/_types.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: _types.h,v 1.16 2013/07/13 17:28:36 deraadt Exp $ */
+/* $OpenBSD: _types.h,v 1.17 2013/12/18 16:41:01 deraadt Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -45,8 +45,9 @@
* This does not reflect the optimal alignment, just the possibility
* (within reasonable limits).
*/
-#define _ALIGNBYTES 7
-#define _ALIGN(p) (((unsigned long)(p) + _ALIGNBYTES) & ~_ALIGNBYTES)
+#define _ALIGNBYTES 7
+#define _STACKALIGNBYTES _ALIGNBYTES
+#define _ALIGN(p) (((unsigned long)(p) + _ALIGNBYTES) & ~_ALIGNBYTES)
#define _ALIGNED_POINTER(p,t) ((((unsigned long)(p)) & (sizeof(t) - 1)) == 0)
/*
diff --git a/sys/arch/powerpc/include/_types.h b/sys/arch/powerpc/include/_types.h
index 7cdde0cb3d5..34f54c27812 100644
--- a/sys/arch/powerpc/include/_types.h
+++ b/sys/arch/powerpc/include/_types.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: _types.h,v 1.18 2013/07/13 17:28:36 deraadt Exp $ */
+/* $OpenBSD: _types.h,v 1.19 2013/12/18 16:41:01 deraadt Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -51,8 +51,9 @@ typedef struct label_t {
* This does not reflect the optimal alignment, just the possibility
* (within reasonable limits).
*/
-#define _ALIGNBYTES (sizeof(double) - 1)
-#define _ALIGN(p) (((unsigned long)(p) + _ALIGNBYTES) & ~_ALIGNBYTES)
+#define _ALIGNBYTES (sizeof(double) - 1)
+#define _STACKALIGNBYTES _ALIGNBYTES
+#define _ALIGN(p) (((unsigned long)(p) + _ALIGNBYTES) & ~_ALIGNBYTES)
#define _ALIGNED_POINTER(p,t) ((((unsigned long)(p)) & (sizeof(t) - 1)) == 0)
/* 7.18.1.1 Exact-width integer types */
diff --git a/sys/arch/sh/include/_types.h b/sys/arch/sh/include/_types.h
index 2130847f7f5..cb97ec877fe 100644
--- a/sys/arch/sh/include/_types.h
+++ b/sys/arch/sh/include/_types.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: _types.h,v 1.16 2013/07/13 17:28:36 deraadt Exp $ */
+/* $OpenBSD: _types.h,v 1.17 2013/12/18 16:41:01 deraadt Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -51,8 +51,9 @@ typedef struct label_t {
* This does not reflect the optimal alignment, just the possibility
* (within reasonable limits).
*/
-#define _ALIGNBYTES (sizeof(int) - 1)
-#define _ALIGN(p) (((unsigned long)(p) + _ALIGNBYTES) & ~_ALIGNBYTES)
+#define _ALIGNBYTES (sizeof(int) - 1)
+#define _STACKALIGNBYTES _ALIGNBYTES
+#define _ALIGN(p) (((unsigned long)(p) + _ALIGNBYTES) & ~_ALIGNBYTES)
#define _ALIGNED_POINTER(p,t) ((((unsigned long)(p)) & (sizeof(t) - 1)) == 0)
/* 7.18.1.1 Exact-width integer types */
diff --git a/sys/arch/sparc/include/_types.h b/sys/arch/sparc/include/_types.h
index 3c1abf560af..49a858acae4 100644
--- a/sys/arch/sparc/include/_types.h
+++ b/sys/arch/sparc/include/_types.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: _types.h,v 1.23 2013/07/13 17:28:36 deraadt Exp $ */
+/* $OpenBSD: _types.h,v 1.24 2013/12/18 16:41:01 deraadt Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -52,8 +52,9 @@ typedef struct label_t {
* This does not reflect the optimal alignment, just the possibility
* (within reasonable limits).
*/
-#define _ALIGNBYTES 7
-#define _ALIGN(p) (((unsigned long)(p) + _ALIGNBYTES) & ~_ALIGNBYTES)
+#define _ALIGNBYTES 7
+#define _STACKALIGNBYTES _ALIGNBYTES
+#define _ALIGN(p) (((unsigned long)(p) + _ALIGNBYTES) & ~_ALIGNBYTES)
#define _ALIGNED_POINTER(p,t) ((((unsigned long)(p)) & (sizeof(t) - 1)) == 0)
/* 7.18.1.1 Exact-width integer types */
diff --git a/sys/arch/sparc64/include/_types.h b/sys/arch/sparc64/include/_types.h
index 32c0a8ec148..c5240ec4ae4 100644
--- a/sys/arch/sparc64/include/_types.h
+++ b/sys/arch/sparc64/include/_types.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: _types.h,v 1.19 2013/07/13 17:28:36 deraadt Exp $ */
+/* $OpenBSD: _types.h,v 1.20 2013/12/18 16:41:01 deraadt Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -51,8 +51,9 @@ typedef struct label_t {
* This does not reflect the optimal alignment, just the possibility
* (within reasonable limits).
*/
-#define _ALIGNBYTES 0xf
-#define _ALIGN(p) (((unsigned long)(p) + _ALIGNBYTES) & ~_ALIGNBYTES)
+#define _ALIGNBYTES 0xf
+#define _STACKALIGNBYTES _ALIGNBYTES
+#define _ALIGN(p) (((unsigned long)(p) + _ALIGNBYTES) & ~_ALIGNBYTES)
#define _ALIGNED_POINTER(p,t) ((((unsigned long)(p)) & (sizeof(t) - 1)) == 0)
/* 7.18.1.1 Exact-width integer types */
diff --git a/sys/arch/vax/include/_types.h b/sys/arch/vax/include/_types.h
index 55862d8d935..37cdcb61edc 100644
--- a/sys/arch/vax/include/_types.h
+++ b/sys/arch/vax/include/_types.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: _types.h,v 1.19 2013/07/13 17:28:36 deraadt Exp $ */
+/* $OpenBSD: _types.h,v 1.20 2013/12/18 16:41:01 deraadt Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -51,8 +51,9 @@ typedef struct label_t {
* This does not reflect the optimal alignment, just the possibility
* (within reasonable limits).
*/
-#define _ALIGNBYTES (sizeof(int) - 1)
-#define _ALIGN(p) (((unsigned long)(p) + _ALIGNBYTES) & ~_ALIGNBYTES)
+#define _ALIGNBYTES (sizeof(int) - 1)
+#define _STACKALIGNBYTES _ALIGNBYTES
+#define _ALIGN(p) (((unsigned long)(p) + _ALIGNBYTES) & ~_ALIGNBYTES)
#define _ALIGNED_POINTER(p,t) ((((unsigned long)(p)) & (sizeof(t) - 1)) == 0)
/* 7.18.1.1 Exact-width integer types */