mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-04-11 16:37:45 -04:00
plugins: clean up IRAM memory region definitions
Check for USE_IRAM to determine if IRAM should be used. SoCs that don't define USE_IRAM no longer need to define IRAMSIZE to 0 either. When IRAM is not used, any symbols bound for IRAM will be discarded instead of linking them in DRAM. In theory these symbols shouldn't exist, since nothing should be placed into IRAM sections to begin with for !USE_IRAM. If an IRAM section attribute leaks into the plugin/codec anyway, it should now cause a link time error. Change-Id: I55c1854cfe8beb5cb09b865336906f9945084b33
This commit is contained in:
parent
c9172d4ff8
commit
a80911a0ce
2 changed files with 14 additions and 32 deletions
|
|
@ -29,7 +29,7 @@
|
|||
|
||||
#include "config.h"
|
||||
|
||||
#if (CONFIG_PLATFORM&PLATFORM_HOSTED)
|
||||
#if !defined(USE_IRAM)
|
||||
#define ICODE_SECTION_MPA_ARM .text
|
||||
#define IBSS_SECTION_MPA_ARM .bss
|
||||
#define ICODE_ATTR_MPA_SYNTH
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue