rt-thread-official/libcpu
Shell 40cd8cce99 feat: Added rt_interrupt_context* family for nested interrupt handling
These changes introduce the rt_interrupt_context family, providing a
mechanism for managing nested interrupts. The context management
ensures proper storage and retrieval of interrupt states, improving
reliability in nested interrupt scenarios by enabling context tracking
across different interrupt levels. This enhancement is essential for
platforms where nested interrupt handling is crucial, such as in real-
time or multi-threaded applications.

Changes:
- Defined rt_interrupt_context structure with context and node fields
  in `rtdef.h` to support nested interrupts.
- Added rt_slist_pop function in `rtservice.h` for simplified node
  removal in singly linked lists.
- Declared rt_interrupt_context_push, rt_interrupt_context_pop, and
  rt_interrupt_context_get functions in `rtthread.h` to manage the
  interrupt/exception stack.
- Modified AArch64 CPU support in `cpuport.h` to include
  rt_hw_show_register for debugging registers.
- Refactored `_rt_hw_trap_irq` in `trap.c` for context-aware IRQ
  handling, with stack push/pop logic to handle nested contexts.
- Implemented interrupt context push, pop, and retrieval logic in
  `irq.c` to manage context at the CPU level.

Signed-off-by: Shell <smokewood@qq.com>
2024-11-03 10:08:45 +08:00
..
aarch64 feat: Added rt_interrupt_context* family for nested interrupt handling 2024-11-03 10:08:45 +08:00
arc [libcpu][SConscript]规范group名为libcpu 2024-02-20 08:39:05 +08:00
arm [kernel] Specification interrupt nested level variable declaration type (#9568) 2024-10-23 17:08:29 -04:00
avr32 [libcpu][SConscript]规范group名为libcpu 2024-02-20 08:39:05 +08:00
blackfin [libcpu][SConscript]规范group名为libcpu 2024-02-20 08:39:05 +08:00
c-sky [libcpu][SConscript]规范group名为libcpu 2024-02-20 08:39:05 +08:00
ia32 [libcpu][SConscript]规范group名为libcpu 2024-02-20 08:39:05 +08:00
m16c [kernel] Specification interrupt nested level variable declaration type (#9568) 2024-10-23 17:08:29 -04:00
mips [libcpu][SConscript]规范group名为libcpu 2024-02-20 08:39:05 +08:00
nios [libcpu][SConscript]规范group名为libcpu 2024-02-20 08:39:05 +08:00
ppc [kernel] Specification interrupt nested level variable declaration type (#9568) 2024-10-23 17:08:29 -04:00
risc-v [kernel] Specification interrupt nested level variable declaration type (#9568) 2024-10-23 17:08:29 -04:00
rx [kernel] Specification interrupt nested level variable declaration type (#9568) 2024-10-23 17:08:29 -04:00
sim [libcpu][SConscript]规范group名为libcpu 2024-02-20 08:39:05 +08:00
sparc-v8 [kernel] Specification interrupt nested level variable declaration type (#9568) 2024-10-23 17:08:29 -04:00
ti-dsp [kernel] Specification interrupt nested level variable declaration type (#9568) 2024-10-23 17:08:29 -04:00
unicore32 [kernel] Specification interrupt nested level variable declaration type (#9568) 2024-10-23 17:08:29 -04:00
v850 [kernel] Specification interrupt nested level variable declaration type (#9568) 2024-10-23 17:08:29 -04:00
xilinx [kernel] Specification interrupt nested level variable declaration type (#9568) 2024-10-23 17:08:29 -04:00
Kconfig feat: Added rt_interrupt_context* family for nested interrupt handling 2024-11-03 10:08:45 +08:00
SConscript [libcpu] Fix the build directory issue 2019-03-26 13:36:01 +00:00