arch/arm/samv7: add ARCH_RAMVECTORS support

Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
Petro Karashchenko
2022-12-17 00:29:44 +02:00
committed by Xiang Xiao
parent e28e4fd320
commit cc0ee12092
3 changed files with 25 additions and 4 deletions
@@ -88,6 +88,12 @@ SECTIONS
_eronly = ABSOLUTE(.);
/* The RAM vector table (if present) should lie at the beginning of SRAM */
.ram_vectors : {
*(.ram_vectors)
} > sram
.data : {
_sdata = ABSOLUTE(.);
*(.data .data.*)
@@ -97,7 +103,7 @@ SECTIONS
_edata = ABSOLUTE(.);
} > sram AT > flash
.ramfunc ALIGN(4): {
.ramfunc : ALIGN(4) {
_sramfuncs = ABSOLUTE(.);
*(.ramfunc .ramfunc.*)
_eramfuncs = ABSOLUTE(.);
@@ -63,6 +63,12 @@ SECTIONS
_eronly = ABSOLUTE(.);
/* The RAM vector table (if present) should lie at the beginning of SRAM */
.ram_vectors : {
*(.ram_vectors)
} > ksram
.data : {
_sdata = ABSOLUTE(.);
*(.data .data.*)
@@ -72,7 +78,7 @@ SECTIONS
_edata = ABSOLUTE(.);
} > ksram AT > kflash
.ramfunc ALIGN(4): {
.ramfunc : ALIGN(4) {
_sramfuncs = ABSOLUTE(.);
*(.ramfunc .ramfunc.*)
_eramfuncs = ABSOLUTE(.);