aboutsummaryrefslogtreecommitdiffstats
path: root/src/common.h
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2021-05-24 17:02:29 +0200
committerBad Diode <bd@badd10de.dev>2021-05-24 17:02:29 +0200
commit3410761714c70480c063112e5a184c93cae39bb3 (patch)
treec955c7e6cb8a783b5a76c3e40b01c58313cd9f7d /src/common.h
parente07f072de45d23ab17661e3ea6bd3c707f04aa35 (diff)
downloaduxngba-3410761714c70480c063112e5a184c93cae39bb3.tar.gz
uxngba-3410761714c70480c063112e5a184c93cae39bb3.zip
Add experimental block based filesystem
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h7
1 files changed, 5 insertions, 2 deletions
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) {
716#define CLAMP(X, MIN, MAX) ((X) <= (MIN) ? (MIN) : (X) > (MAX) ? (MAX): (X)) 716#define CLAMP(X, MIN, MAX) ((X) <= (MIN) ? (MIN) : (X) > (MAX) ? (MAX): (X))
717#define LEN(ARR) (sizeof(ARR) / sizeof((ARR)[0])) 717#define LEN(ARR) (sizeof(ARR) / sizeof((ARR)[0]))
718 718
719// IWRAM allocation macros for devkitARM. 719//
720#define IWRAM_CODE __attribute__((section(".iwram"), long_call, target("arm"))) 720// Memory section macros for devkitARM.
721//
721#define IWRAM_DATA __attribute__((section(".iwram"))) 722#define IWRAM_DATA __attribute__((section(".iwram")))
723#define IWRAM_CODE __attribute__((section(".iwram"), long_call, target("arm")))
722#define EWRAM_DATA __attribute__((section(".ewram"))) 724#define EWRAM_DATA __attribute__((section(".ewram")))
725#define EWRAM_CODE __attribute__((section(".ewram"), long_call))
723#define EWRAM_BSS __attribute__((section(".sbss"))) 726#define EWRAM_BSS __attribute__((section(".sbss")))
724 727
725#endif // GBAEXP_COMMON_H 728#endif // GBAEXP_COMMON_H