From 8926b0858247a1861a045af9cf33ce616054945e Mon Sep 17 00:00:00 2001 From: Anghelo Carvajal Date: Fri, 11 Feb 2022 20:23:57 -0300 Subject: Force required alignment on DMA related stuff (#1135) * Force dword alignment on OSPifRam * force_structure_alignment on each Font buffer * Add ALIGNED8 macro to gSaveContext to ensure alignment * create alignment.h header and use ALIGN8 in PLAYER_LIMB_BUF_COUNT * add comment in common_data * Roman's suggestion * player_limb_buf_count Co-authored-by: fig02 --- src/code/z_common_data.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/code') diff --git a/src/code/z_common_data.c b/src/code/z_common_data.c index 216a5ac9a..670509d6e 100644 --- a/src/code/z_common_data.c +++ b/src/code/z_common_data.c @@ -1,6 +1,7 @@ #include "global.h" -SaveContext gSaveContext; +// The use of ALIGNED8 here is just a temporary solution until the SaveContext is re-structured +ALIGNED8 SaveContext gSaveContext; u32 D_8015FA88; u32 D_8015FA8C; -- cgit v1.2.3