rp2040: Run all code from ram
Place all normal code into ram. This reduces the chance that rp2040 instruction cache misses could cause subtle timing issues. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
23c5b20f5b
commit
44e79e0c37
|
@ -31,8 +31,7 @@ SECTIONS
|
||||||
_text_vectortable_start = .;
|
_text_vectortable_start = .;
|
||||||
KEEP(*(.vector_table))
|
KEEP(*(.vector_table))
|
||||||
_text_vectortable_end = .;
|
_text_vectortable_end = .;
|
||||||
*(.text .text.*)
|
*(.text.armcm_boot*)
|
||||||
*(.rodata .rodata*)
|
|
||||||
} > rom
|
} > rom
|
||||||
|
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
|
@ -42,7 +41,9 @@ SECTIONS
|
||||||
{
|
{
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
_data_start = .;
|
_data_start = .;
|
||||||
|
*(.text .text.*)
|
||||||
*(.ramfunc .ramfunc.*);
|
*(.ramfunc .ramfunc.*);
|
||||||
|
*(.rodata .rodata*)
|
||||||
*(.data .data.*);
|
*(.data .data.*);
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
_data_end = .;
|
_data_end = .;
|
||||||
|
|
Loading…
Reference in New Issue