1 Star 2 Fork 0

GTT/freertos_smp_port

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
system_ARMCA9.c 1.15 KB
一键复制 编辑 原始数据 按行查看 历史
GTT 提交于 2022-11-20 18:19 . init project
#include "core_ca.h"
#include "irq_ctrl.h"
/*----------------------------------------------------------------------------
System Initialization
*----------------------------------------------------------------------------*/
void SystemInit (void)
{
/* do not use global variables because this function is called before
reaching pre-main. RW section may be overwritten afterwards. */
// Invalidate entire Unified TLB
__set_TLBIALL(0);
// Invalidate entire branch predictor array
__set_BPIALL(0);
__DSB();
__ISB();
// Invalidate instruction cache and flush branch target cache
__set_ICIALLU(0);
__DSB();
__ISB();
// Invalidate data cache
L1C_InvalidateDCacheAll();
#if ((__FPU_PRESENT == 1) && (__FPU_USED == 1))
// Enable FPU
__FPU_Enable();
#endif
// Create Translation Table
extern void MMU_CreateTranslationTable(void);
MMU_CreateTranslationTable();
// Enable MMU
MMU_Disable();
// Enable Caches
L1C_EnableCaches();
L1C_EnableBTAC();
#if (__L2C_PRESENT == 1)
// Enable GIC
//L2C_Enable();
#endif
// IRQ Initialize
IRQ_Initialize();
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/matrix_python/freertos_smp_portf.git
[email protected]:matrix_python/freertos_smp_portf.git
matrix_python
freertos_smp_portf
freertos_smp_port
master

搜索帮助