rp2040: Add _ramfunc macro to internal.h and use in bootrom.c and chipid.c

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2021-07-04 11:40:45 -04:00
parent ba958468b7
commit f2b4d353d8
3 changed files with 13 additions and 9 deletions

View File

@@ -14,4 +14,8 @@ void connect_internal_flash(void);
void flash_exit_xip(void);
void flash_flush_cache(void);
// Force a function to run from ram
#define UNIQSEC __FILE__ "." __stringify(__LINE__)
#define _ramfunc noinline __section(".ramfunc." UNIQSEC)
#endif // internal.h