1 /*
2  * SPDX-FileCopyrightText: 2020-2021 Espressif Systems (Shanghai) CO LTD
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #include <stdbool.h>
8 
9 #include "hal/cpu_hal.h"
10 #include "hal/mpu_hal.h"
11 #include "hal/mpu_types.h"
12 #include "soc/soc_caps.h"
13 #include "bootloader_mem.h"
14 #include "soc/cpu.h"
15 
bootloader_init_mem(void)16 void bootloader_init_mem(void)
17 {
18     cpu_hal_init_hwloop();
19 
20     // protect memory region
21     esp_cpu_configure_region_protection();
22 }
23