diff options
-rw-r--r-- | firmware/target/mips/ingenic_x1000/system-target.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/firmware/target/mips/ingenic_x1000/system-target.h b/firmware/target/mips/ingenic_x1000/system-target.h index a2f0a6ff70..050afcca9e 100644 --- a/firmware/target/mips/ingenic_x1000/system-target.h +++ b/firmware/target/mips/ingenic_x1000/system-target.h | |||
@@ -28,6 +28,15 @@ | |||
28 | #define CACHEALIGN_BITS 5 | 28 | #define CACHEALIGN_BITS 5 |
29 | #define CACHE_SIZE (16*1024) | 29 | #define CACHE_SIZE (16*1024) |
30 | 30 | ||
31 | #ifdef BOOTLOADER_SPL | ||
32 | /* This saves ~200 bytes in the SPL by allowing -ffunction-sections to split | ||
33 | * up the cache management functions, most of which aren't called by the SPL. | ||
34 | * If they are placed in .icode, then they all end up in one section and the | ||
35 | * linker can't discard the unused functions. | ||
36 | */ | ||
37 | # define MIPS_CACHEFUNC_ATTR | ||
38 | #endif | ||
39 | |||
31 | #include "mmu-mips.h" | 40 | #include "mmu-mips.h" |
32 | #include "mipsregs.h" | 41 | #include "mipsregs.h" |
33 | #include "mipsr2-endian.h" | 42 | #include "mipsr2-endian.h" |