From a34c2f4cb0931c8f41ad35841e7fe76473a5b9b7 Mon Sep 17 00:00:00 2001 From: thecozies Date: Fri, 5 May 2023 11:16:57 -0500 Subject: [PATCH] Aligned gfx buffers to 32 --- src/buffers/buffers.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/buffers/buffers.c b/src/buffers/buffers.c index a2ff8d5d..93e980ed 100644 --- a/src/buffers/buffers.c +++ b/src/buffers/buffers.c @@ -20,14 +20,8 @@ ALIGNED8 u8 gThread5Stack[THREAD5_STACK]; ALIGNED8 u8 gThread6Stack[THREAD6_STACK]; #endif // 0x400 bytes -#if UNF -ALIGNED16 u8 gGfxSPTaskStack[SP_DRAM_STACK_SIZE8]; -ALIGNED16 u8 gGfxSPTaskYieldBuffer[OS_YIELD_DATA_SIZE]; -#else -// 0xc00 bytes for f3dex, 0x900 otherwise -ALIGNED8 u8 gGfxSPTaskStack[SP_DRAM_STACK_SIZE8]; -ALIGNED8 u8 gGfxSPTaskYieldBuffer[OS_YIELD_DATA_SIZE]; -#endif // UNF +__attribute__((aligned(32))) u8 gGfxSPTaskStack[SP_DRAM_STACK_SIZE8]; +__attribute__((aligned(32))) u8 gGfxSPTaskYieldBuffer[OS_YIELD_DATA_SIZE]; // 0x200 bytes ALIGNED8 struct SaveBuffer gSaveBuffer; // 0x190a0 bytes