rt-thread-official/include
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
..
klibc [klibc] add kerrno.h 2024-09-23 21:30:37 +08:00
rtatomic.h feat: set RT_USING_STDC_ATOMIC to first priority 2024-08-13 04:13:51 -04:00
rtcompiler.h Fixed an issue in mdk where macro definitions are not supported in the C99 specification 2024-03-20 22:43:55 +08:00
rtdbg.h [debug] 整理debug宏并增加RT_DEBUGING_CONTEXT (#7805) 2023-07-22 10:36:42 +08:00
rtdef.h feat: Added rt_interrupt_context* family for nested interrupt handling 2024-11-03 10:08:45 +08:00
rthw.h feat: kernel/libcpu: fit into ilp32d 2024-09-01 15:12:34 -04:00
rtklibc.h [klibc] add kerrno.h 2024-09-23 21:30:37 +08:00
rtm.h [rtdef] use lower-case to define attributes (#6728) 2022-12-11 13:12:03 -05:00
rtsched.h feat: remove RT_USING_SCHED_THREAD_CTX 2024-10-19 15:19:41 -04:00
rtservice.h feat: Added rt_interrupt_context* family for nested interrupt handling 2024-11-03 10:08:45 +08:00
rtthread.h feat: Added rt_interrupt_context* family for nested interrupt handling 2024-11-03 10:08:45 +08:00
rttypes.h feat: kernel/libcpu: fit into ilp32d 2024-09-01 15:12:34 -04:00