hujun260 opened a new pull request, #22374:
URL: https://github.com/apache/nuttx/pull/22374

   ## Summary
   
   * Consolidate duplicated ARM Cortex-M support into the common 
`arch/arm/src/arm_m` implementation.
   * Merge common implementations for NVIC, SysTick, fault handling, SVC, 
initial task state, system reset, trigger IRQ, stack checking, and related 
debug headers across ARMv6-M, ARMv7-M, and ARMv8-M.
   * Preserve compatibility with existing `ARMV7M_SYSTICK`, `ARMV8M_SYSTICK`, 
and legacy NVIC configuration/header usage while reducing duplicated code and 
maintenance cost.
   * Add ARM-M L2 cache support and fix the disabled-L2-cache build path.
   * Clear `MSPLIM` and `PSPLIM` when hardware stack checking is disabled, 
preventing stale limits from a previous boot stage from affecting the 
application.
   
   Commits included:
   
   * `989bdc912ce` arch/arm/arm_m: merge src/nvic.h arm_dumpnvic.c
   * `192702f568a` arch/arm_m: merge systick
   * `c2a64c5fd38` cache: add l2cache support for arm-M
   * `8ad58705692` arch/armv8-m/l2cc: add UNUSED to fix if ARCH_L2CACHE not 
enabled
   * `bad7d9bf1c9` arch/arm_m: move src/x.h into arm_m/x.h
   * `2c8a95764d0` arch/arm_m: merge src/x_fault.c systemreset triggerirq into 
arm_m
   * `57340273e64` arch/arm_m: merge v6/7/8-m svcall.c
   * `24ae6a7c5de` armv8m: set msplim & psplim to 0 when HW STACKCHECK disabled
   * `3186072946f` arch/arm_m: merge v6/7/8-m arm_initialstate.c
   * `bccb7c9c2b9` arch/arm-m: merge arm_stackcheck
   
   ## Impact
   
   * ARMv6-M, ARMv7-M, and ARMv8-M builds use the shared ARM-M implementations 
where applicable.
   * The change is primarily a source and build-system reorganization; existing 
configuration compatibility is retained for the SysTick and legacy NVIC 
interfaces.
   * ARM-M targets can use the new L2 cache support when `ARCH_L2CACHE` is 
enabled.
   * When hardware stack checking is disabled on ARMv8-M, stack limit registers 
are explicitly reset during initialization, improving isolation from bootloader 
state.
   * No user-facing API or documentation changes are intended.
   
   ## Testing
   
   
   * Recommended validation:
     * Build representative ARMv6-M, ARMv7-M, and ARMv8-M configurations with 
both CMake and Make-based build paths where supported.
     * Build an ARMv8-M configuration with hardware stack checking disabled and 
verify that the stack limit registers are initialized to zero.
     * Build ARM-M configurations with `ARCH_L2CACHE` enabled and disabled.
     * Run the NuttX test suite or board smoke tests for representative ARM-M 
targets.
   Related to #21984
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

  • [PR] arch/arm: Consolidate du... hujun260 (via GitHub) via commits

Reply via email to