summaryrefslogtreecommitdiff
path: root/libcpu/arm/cortex-m4/cpuport.c
AgeCommit message (Collapse)Author
2026-08-26[arm][cortex-m4] Add hardware stack guard supporthanzhijian
Enable RT_USING_HW_STACK_GUARD on Cortex-M4, which was previously only available on Cortex-M7 and Cortex-M33. Core porting (libcpu/arm/cortex-m4/): - Add mpu.c/mpu.h/mputype.h aligned with the Cortex-M7 MPU layer. The only difference is the default memory type attribute: Cortex-M4 has no L1 cache, so the cacheability bits are reduced to three cases. - Add rt_hw_stack_guard_init() to cpuport.c. - Add missing #include <rtconfig.h> to context_gcc.S and invoke rt_hw_mpu_table_switch() in the PendSV context switch path. - Update SConscript to exclude mpu.c when memory protection is disabled. BSP reference (bsp/stm32/stm32f407-fk407m2-zgt6/): - board.h: include rtthread.h and define NUM_STATIC_REGIONS. - board.c: define static_regions[] marking the Flash region read-only, guarded by RT_USING_MEM_PROTECTION so it is not enabled by default.
2026-08-12fix(dm): route Cortex-M resets through power coreRbb666
2026-08-12feat(dm): support OFW on Cortex-M targetsRbb666
Add the ARM NVIC PIC driver, no-MMU I/O mapping, built-in FDT support, and Cortex-M CPU hooks required by the native RT-Thread device model.
2026-06-02fix IAR build error蒙蒙plus
2026-04-08feat(core): Add Cortex-M4 interrupt context helperswdfk-prog
2023-08-08rt_hw_cpu_shutdown: implement default weak functionMeco Man
and remvoe duplicated default functions in each cpu/bsp level
2023-08-08rt_hw_cpu_reset: remove all other rt_weakMeco Man
2023-04-04[kernel] 将rt_thread结构体改为显式继承rt_object (#7131)Shicheng Chu
2022-12-11[rtdef] use lower-case to define attributes (#6728)Man, Jianting (Meco)
* [rtdef] rename RT_WEAK attribute as rt_weak * [rtdef] rename RT_USED attribute as rt_used * [rtdef] rename RT_SECTION attribute as rt_section * [rtdef] rename ALIGN attribute as rt_align * [legacy] add RT_USED ALIGN RT_SECTION RT_WEAK as legacy support
2022-08-11[libcpu][arm] fix armclang error when enable LTOtfx2001
2022-06-15[libcpu][arm] ArmClang 编译优化错误 (#6071)JonasWen
2021-12-29[armclang] 使用__clang__代替__CLANG_ARMMeco Man
2021-08-28FINSH_USING_BUILT_IN_COMMANDS改MSH_USING_BUILT_IN_COMMANDSMeco Man
2021-08-25[finsh] finsh组件可以选择是否包含内置命令Meco Man
2021-03-27[libcpu] auto formattedMeco Man
2020-11-20[libcpu][update]重启与关机函数:rt_hw_cpu_shutdown、rt_hw_cpu_reset ↵张世争
,补充WEAK属性
2020-06-18[libcpu/arm/*/cpuport.c]fixed __rt_ffs bug on account of armclang LTO.xieyangrun
2019-09-19[libcpu][arm] 修复因提前返回,导致sp指针不对称问题tangyuxin
2019-07-03[libcpu/arm]add __rt_ffs() for armclang in CORTEX M3/4/7yangjie
2018-09-25[libcpu] Fix the FPU definition in M4/M7 for ARM ClangBernard Xiong
2018-09-23[Kernel] Add ARMCC 6.x support.Bernard Xiong
2018-08-01add rt_hw_cpu_reset for cortex-m cpu[email protected]
2018-07-25[libcpu][comtex-m4] enhancement hard fault exception handler.aozima
2017-08-23update cortex-m libcpu: fixed compile error.aozima
2014-09-11[libcpu] Add builtin ffs implementation for Cortex-M4.bernard
2013-06-23update libcpu/arm/cortex-m4: support lazy stack optimized.aozima
2012-12-29Add exception hook function.[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2551 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-12-24fixed the coding style in libcpu/arm[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2518 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-12-23stack addr align to 8byte.wuyangyong
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2509 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-12-17add LPC4330 BSP based on NGX xplorer development board[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2487 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-04-29fix extern list_thread return type by arda.wuyangyong
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2104 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-02-18update libcpu cortex-m4.wuyangyong
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1967 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-12-31support context switch load/store FPU register.wuyangyong
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1901 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-12-31fixed stack align issues.wuyangyong
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1900 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-10-27update cortex-M4 libcpuwuyangyong
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1773 bbd45198-f89e-11dd-88c7-29a3b14d5316
2011-10-20add STM32F40x porting (uncompleted)[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1770 bbd45198-f89e-11dd-88c7-29a3b14d5316