From c6de879cbc02bb3ea407651f6305563a9d89fc20 Mon Sep 17 00:00:00 2001 From: James Benton Date: Thu, 7 Jan 2016 06:21:02 -0800 Subject: [PATCH] Add pragma pack 1 byte alignment for OSThread. Struct size seems to be rounded up to 8 byte alignment. --- include/coreinit/thread.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/coreinit/thread.h b/include/coreinit/thread.h index fe426b2..2f58de4 100644 --- a/include/coreinit/thread.h +++ b/include/coreinit/thread.h @@ -126,6 +126,7 @@ CHECK_SIZE(OSFastMutexQueue, 0x08); #define OS_THREAD_TAG 0x74487244u +#pragma pack(push, 1) struct OSThread { OSContext context; @@ -162,6 +163,7 @@ struct OSThread OSThreadQueue suspendQueue; // Queue of threads waiting for suspend to finish UNKNOWN(0x69c - 0x5f4); }; +#pragma pack(pop) CHECK_OFFSET(OSThread, 0x320, tag); CHECK_OFFSET(OSThread, 0x324, state); CHECK_OFFSET(OSThread, 0x325, attr);