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:
Mahavir Jain
2026-08-06 21:39:31 +05:30
committed by harshal.patil
parent 5ff870a33e
commit 939043ea83

View File

@@ -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