mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
x1000: Trim unused cache functions from the SPL build
Change-Id: Ib645d8ff10cfc672de8ac2debaa17d7dd50dfafb
This commit is contained in:
parent
54b8e9131c
commit
c0a823e2ab
1 changed files with 9 additions and 0 deletions
|
@ -28,6 +28,15 @@
|
|||
#define CACHEALIGN_BITS 5
|
||||
#define CACHE_SIZE (16*1024)
|
||||
|
||||
#ifdef BOOTLOADER_SPL
|
||||
/* This saves ~200 bytes in the SPL by allowing -ffunction-sections to split
|
||||
* up the cache management functions, most of which aren't called by the SPL.
|
||||
* If they are placed in .icode, then they all end up in one section and the
|
||||
* linker can't discard the unused functions.
|
||||
*/
|
||||
# define MIPS_CACHEFUNC_ATTR
|
||||
#endif
|
||||
|
||||
#include "mmu-mips.h"
|
||||
#include "mipsregs.h"
|
||||
#include "mipsr2-endian.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue