summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-04-05 09:53:41 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-04-05 15:55:38 +0200
commitee3894f2857735862cbbfe21d86e75f4179e8f80 (patch)
treea6aea36acd4cef44b4919810dad8c241e3411dc5
parent6087c1caa53a798b68856c77b1ceb9e5317c5c64 (diff)
downloadrockbox-ee3894f2857735862cbbfe21d86e75f4179e8f80.tar.gz
rockbox-ee3894f2857735862cbbfe21d86e75f4179e8f80.tar.bz2
rockbox-ee3894f2857735862cbbfe21d86e75f4179e8f80.zip
threads: Move stack_size to end of struct thread (followup to f19ffe2)
Makes the structure more compact. Fixes the build failure on the m68k M5 target Change-Id: If17b872f4923d3a52b344e3c59ed6f870d5a7725
-rw-r--r--firmware/kernel/thread-internal.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/kernel/thread-internal.h b/firmware/kernel/thread-internal.h
index e47a37dfd7..2d2eb161bd 100644
--- a/firmware/kernel/thread-internal.h
+++ b/firmware/kernel/thread-internal.h
@@ -127,13 +127,13 @@ struct thread_entry
unsigned char priority; /* Scheduled priority (higher of base or
all threads blocked by this one) */
#endif
-#ifndef HAVE_SDL_THREADS
- size_t stack_size; /* Size of stack in bytes */
-#endif
unsigned char state; /* Thread slot state (STATE_*) */
#ifdef HAVE_SCHEDULER_BOOSTCTRL
unsigned char cpu_boost; /* CPU frequency boost flag */
#endif
+#ifndef HAVE_SDL_THREADS
+ size_t stack_size; /* Size of stack in bytes */
+#endif
};
/* Thread ID, 32 bits = |VVVVVVVV|VVVVVVVV|VVVVVVVV|SSSSSSSS| */