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:
Aurelien Jarno 2019-02-10 11:05:51 +01:00 committed by Andrew Boie
commit eb097bd095
3 changed files with 3 additions and 2 deletions

View file

@ -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 */