From 3410761714c70480c063112e5a184c93cae39bb3 Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Mon, 24 May 2021 17:02:29 +0200 Subject: Add experimental block based filesystem --- src/common.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/common.h') diff --git a/src/common.h b/src/common.h index 39f3ada..bfa3903 100644 --- a/src/common.h +++ b/src/common.h @@ -716,10 +716,13 @@ wait_vsync(void) { #define CLAMP(X, MIN, MAX) ((X) <= (MIN) ? (MIN) : (X) > (MAX) ? (MAX): (X)) #define LEN(ARR) (sizeof(ARR) / sizeof((ARR)[0])) -// IWRAM allocation macros for devkitARM. -#define IWRAM_CODE __attribute__((section(".iwram"), long_call, target("arm"))) +// +// Memory section macros for devkitARM. +// #define IWRAM_DATA __attribute__((section(".iwram"))) +#define IWRAM_CODE __attribute__((section(".iwram"), long_call, target("arm"))) #define EWRAM_DATA __attribute__((section(".ewram"))) +#define EWRAM_CODE __attribute__((section(".ewram"), long_call)) #define EWRAM_BSS __attribute__((section(".sbss"))) #endif // GBAEXP_COMMON_H -- cgit v1.2.1