commit f02b0ddb556f7b516be8184dbe013519113a4b0b
parent d5cc3e3da4fa0eb36d080e37ac54d8258e3d6882
Author: Sebastian <sebastian@sebsite.pw>
Date: Fri, 13 May 2022 22:21:41 -0400
rt+linux: make __ADDR_BND_PKEY_PAD arch-specific
Signed-off-by: Sebastian <sebastian@sebsite.pw>
Diffstat:
4 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/rt/+linux/+aarch64.ha b/rt/+linux/+aarch64.ha
@@ -3,6 +3,9 @@
// (c) 2021 Eyal Sawady <ecs@d2evs.net>
// (c) 2021 Sudipto Mallick <smlckz@disroot.org>
+// #define __ADDR_BND_PKEY_PAD (_Alignof(void *) < sizeof(short) ? sizeof(short) : _Alignof(void *))
+def __ADDR_BND_PKEY_PAD: size = 8;
+
// Returns the new PID to the parent, void to the child, or errno if something
// goes wrong.
export fn clone(
diff --git a/rt/+linux/+riscv64.ha b/rt/+linux/+riscv64.ha
@@ -3,6 +3,9 @@
// (c) 2021 Eyal Sawady <ecs@d2evs.net>
// (c) 2021 Michael Forney <mforney@mforney.org>
+// #define __ADDR_BND_PKEY_PAD (_Alignof(void *) < sizeof(short) ? sizeof(short) : _Alignof(void *))
+def __ADDR_BND_PKEY_PAD: size = 8;
+
// Returns the new PID to the parent, void to the child, or errno if something
// goes wrong.
export fn clone(
diff --git a/rt/+linux/+x86_64.ha b/rt/+linux/+x86_64.ha
@@ -2,6 +2,9 @@
// (c) 2021 Drew DeVault <sir@cmpwn.com>
// (c) 2021 Eyal Sawady <ecs@d2evs.net>
+// #define __ADDR_BND_PKEY_PAD (_Alignof(void *) < sizeof(short) ? sizeof(short) : _Alignof(void *))
+def __ADDR_BND_PKEY_PAD: size = 8;
+
// Returns the new PID to the parent, void to the child, or errno if something
// goes wrong.
export fn clone(
diff --git a/rt/+linux/types.ha b/rt/+linux/types.ha
@@ -409,10 +409,6 @@ export type sigval = union {
sival_ptr: *void,
};
-
-// #define __ADDR_BND_PKEY_PAD (_Alignof(void *) < sizeof(short) ? sizeof(short) : _Alignof(void *))
-def __ADDR_BND_PKEY_PAD: size = 8;
-
export type siginfo = union {
struct {
si_signo: int,