Fix sGpuRegBuffer potential alignment issues (#2157)

This commit is contained in:
DizzyEggg
2025-06-25 18:54:13 +02:00
committed by GitHub
parent e1b83d6056
commit 64a6e8817c

View File

@@ -8,7 +8,7 @@
#define EMPTY_SLOT 0xFF #define EMPTY_SLOT 0xFF
static u8 sGpuRegBuffer[GPU_REG_BUF_SIZE]; static ALIGNED(2) u8 sGpuRegBuffer[GPU_REG_BUF_SIZE]; // sGpuRegBuffer is read as u16 so it needs to be properly aligned
static u8 sGpuRegWaitingList[GPU_REG_BUF_SIZE]; static u8 sGpuRegWaitingList[GPU_REG_BUF_SIZE];
static volatile bool8 sGpuRegBufferLocked; static volatile bool8 sGpuRegBufferLocked;
static volatile bool8 sShouldSyncRegIE; static volatile bool8 sShouldSyncRegIE;