mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +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:
@@ -58,7 +58,7 @@ void bootloader_init_mem(void)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if CONFIG_BOOTLOADER_REGION_PROTECTION_ENABLE
|
#if !BOOTLOADER_BUILD || CONFIG_BOOTLOADER_REGION_PROTECTION_ENABLE
|
||||||
// protect memory region
|
// protect memory region
|
||||||
esp_cpu_configure_region_protection();
|
esp_cpu_configure_region_protection();
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user