arch: arm: mpu: get the __ramfunc region size from the linker
The linker file defines the __ramfunc_ram_size symbols to get the size of the __ramfunc_ram section. Use that instead of computing the value at runtime from the start and end symbols. This saves 16 bytes of code with CONFIG_RAM_FUNCTION=y. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
e1cc657941
commit
eb097bd095
3 changed files with 3 additions and 2 deletions
|
@ -247,6 +247,7 @@ extern char _nocache_ram_size[];
|
|||
*/
|
||||
extern char _ramfunc_ram_start[];
|
||||
extern char _ramfunc_ram_end[];
|
||||
extern char _ramfunc_ram_size[];
|
||||
extern char _ramfunc_rom_start[];
|
||||
|
||||
#endif /* ! _ASMLANGUAGE */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue