Merge branch 'bugfix/prefetch_invalid_v3.3' into 'release/v3.3'

soc: add dummy bytes to ensure instr prefetch always valid (v3.3)

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

View File

@@ -164,6 +164,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

@@ -320,6 +320,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 = .;