mirror of
https://github.com/espressif/esp-idf.git
synced 2026-09-22 13:01:16 +03:00
fix(bootloader_support): do not gate application region protection on bootloader config
CONFIG_BOOTLOADER_REGION_PROTECTION_ENABLE is bootloader-scoped; disabling it must not strip the application's PMP/PMA configuration. The application now always applies region protection.
This commit is contained in:
committed by
harshal.patil
parent
5ff870a33e
commit
939043ea83
@@ -58,7 +58,7 @@ void bootloader_init_mem(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
#if CONFIG_BOOTLOADER_REGION_PROTECTION_ENABLE
|
||||
#if !BOOTLOADER_BUILD || CONFIG_BOOTLOADER_REGION_PROTECTION_ENABLE
|
||||
// protect memory region
|
||||
esp_cpu_configure_region_protection();
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user