Merge branch 'bugfix/prefetch_invalid_v4.0' into 'release/v4.0'

soc: add dummy bytes to ensure instr prefetch always valid (v4.0)

See merge request espressif/esp-idf!12996
This commit is contained in:
Zim Kalinowski 2021-07-19 01:41:26 +00:00
commit 7cfe37f907
2 changed files with 16 additions and 0 deletions

View File

@ -162,6 +162,14 @@ SECTIONS
*(.fini.literal)
*(.fini)
*(.gnu.version)
/** CPU will try to prefetch up to 16 bytes of
* of instructions. This means that any configuration (e.g. MMU, PMS) must allow
* safe access to up to 16 bytes after the last real instruction, add
* dummy bytes to ensure this
*/
. += 16;
_text_end = ABSOLUTE(.);
_etext = .;
} > iram_seg

View File

@ -327,6 +327,14 @@ SECTIONS
*(.fini.literal)
*(.fini)
*(.gnu.version)
/** CPU will try to prefetch up to 16 bytes of
* of instructions. This means that any configuration (e.g. MMU, PMS) must allow
* safe access to up to 16 bytes after the last real instruction, add
* dummy bytes to ensure this
*/
. += 16;
_text_end = ABSOLUTE(.);
_etext = .;