From 29fcc404834eaab358eb7c32a099d19e9722afd9 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Mon, 11 May 2026 13:23:52 -0400 Subject: [PATCH] system: Move thread_creation_attributes.priority lower to avoid padding. Note that this breaks syscall ABI. Change-Id: I353049d67f5611fae87fe9e6193a64d51330c846 Reviewed-on: https://review.haiku-os.org/c/haiku/+/5479 Reviewed-by: waddlesplash --- headers/private/system/thread_defs.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/headers/private/system/thread_defs.h b/headers/private/system/thread_defs.h index d601cc7b94..442264d8ee 100644 --- a/headers/private/system/thread_defs.h +++ b/headers/private/system/thread_defs.h @@ -43,14 +43,15 @@ enum { struct thread_creation_attributes { int32 (*entry)(void*, void*); const char* name; - int32 priority; void* args1; void* args2; void* stack_address; size_t stack_size; size_t guard_size; pthread_t pthread; + int32 priority; uint32 flags; }; + #endif /* _SYSTEM_THREAD_DEFS_H */