summaryrefslogtreecommitdiff
path: root/libcpu/arm/cortex-m4/context_gcc.S
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.
2025-08-19[libcpu][cortex-m4]Added HardFault_Handler to save floating point registers.Rbb666
2024-08-29[libcpu][arm][cortex-m4] allows rewrite to interrupt enable/disable api to ↵Evlers
support independent interrupts management
2022-04-08[libcpu/arm]: add dsb and isb instructions in the end of ↵blta
rt_hw_context_switch_to (#5748)
2022-01-20[asm] 解决tab和空格混用的问题Meco Man
2021-12-09[bugfix] libcpu/arm/cortex-m/context_gcc: 修复thumb指令集汇编语法错误jiladahe1997
当使用thumb指令集时,要求汇编语法中的“条件执行”要跟在IT指令后面,否则会编译不通过。 报错如下:Error: thumb conditional instruction should be in IT block -- `moveq r4,#0x01' 虽然可以通过指定"-Wa,-mimplicit-it=thumb"选项来告诉编译器识别隐式的IT指令,但是能在代码里面直接加上IT指令的话更好。 thumb指令集“条件执行”arm官网文档: https://developer.arm.com/documentation/dui0473/m/condition-codes/conditional-execution-in-thumb-state 参考论坛帖子: https://club.rt-thread.org/ask/question/433887.html https://club.rt-thread.org/ask/question/4188.html Signed-off-by: Mingrui Ren <[email protected]>
2020-05-30set Systick interrupt priority to the lowestaozima
2018-10-15[license] Change the license of libarm to Apache.Bernard Xiong
2018-07-25[libcpu][comtex-m4] enhancement hard fault exception handler.aozima
2018-01-31[libcpu]: fixed #1196 FPU FPCA issue.aozima
2017-08-18update libcpu: ensure fault enable.aozima
2014-07-31Fix some spell error;aozima
2013-06-24fix spelling error.aozima
2013-06-23update libcpu/arm/cortex-m4: support lazy stack optimized.aozima
2013-06-23fixed bug: correct cortex-m SCB->VTOR address.aozima
2013-06-22update libcpu/arm/cortex-m4: restore MSP.aozima
2013-01-08convert end of lineBernard Xiong
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-10-20add STM32F40x porting (uncompleted)[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1770 bbd45198-f89e-11dd-88c7-29a3b14d5316