Add GBA section target macros

This commit is contained in:
Myles Busig 2024-07-30 11:43:21 -06:00
parent 023cdad8fa
commit e4e3c10981

View File

@ -25,3 +25,19 @@
#endif
#ifdef __GBA__
#define GBA_IWRAM [[gnu::section(".iwram"), gnu::long_call]]
#define GBA_EWRAM [[gnu::section(".ewram"), gnu::long_call]]
#define GBA_IWRAM_DATA [[gnu::section(".iwram")]]
#define GBA_EWRAM_DATA [[gnu::section(".ewram")]]
#else
#define GBA_IWRAM
#define GBA_EWRAM
#define GBA_IWRAM_DATA
#define GBA_EWRAM_DATA
#endif