2021-08-06 11:18:19 -04:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: 2021 Espressif Systems (Shanghai) CO LTD
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "sdkconfig.h"
|
|
|
|
|
|
|
|
/* CPU instruction prefetch padding size for flash mmap scenario */
|
|
|
|
_esp_flash_mmap_prefetch_pad_size = 16;
|
|
|
|
|
|
|
|
/* CPU instruction prefetch padding size for memory protection scenario */
|
2022-06-23 00:52:11 -04:00
|
|
|
#ifdef CONFIG_SOC_MEMPROT_CPU_PREFETCH_PAD_SIZE
|
|
|
|
_esp_memprot_prefetch_pad_size = CONFIG_SOC_MEMPROT_CPU_PREFETCH_PAD_SIZE;
|
2021-08-06 11:18:19 -04:00
|
|
|
#else
|
|
|
|
_esp_memprot_prefetch_pad_size = 0;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Memory alignment size for PMS */
|
2022-06-23 00:52:11 -04:00
|
|
|
#ifdef CONFIG_SOC_MEMPROT_MEM_ALIGN_SIZE
|
|
|
|
_esp_memprot_align_size = CONFIG_SOC_MEMPROT_MEM_ALIGN_SIZE;
|
2021-08-06 11:18:19 -04:00
|
|
|
#else
|
|
|
|
_esp_memprot_align_size = 0;
|
|
|
|
#endif
|
2022-05-31 22:14:48 -04:00
|
|
|
|
2023-01-30 05:03:41 -05:00
|
|
|
#if CONFIG_APP_BUILD_TYPE_RAM
|
|
|
|
_esp_mmu_block_size = 0;
|
|
|
|
#else
|
2022-05-31 22:14:48 -04:00
|
|
|
_esp_mmu_block_size = (CONFIG_MMU_PAGE_SIZE);
|
2023-01-30 05:03:41 -05:00
|
|
|
#endif
|