rt-thread-official/libcpu/aarch64/common/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
..
armv8.h feat: Added rt_interrupt_context* family for nested interrupt handling 2024-11-03 10:08:45 +08:00
asm-fpu.h [format] cleanup libcpu/aarch64 (#8950) 2024-06-28 00:23:09 +08:00
asm-generic.h feat: arm64: generic implementation of vector irq (#9336) 2024-08-27 00:45:12 -04:00
cache.h [format] cleanup libcpu/aarch64 (#8950) 2024-06-28 00:23:09 +08:00
context_gcc.h [libcpu/arm64] feat: Trimming General Context 2024-07-18 17:41:48 +08:00
cp15.h [format] cleanup libcpu/aarch64 (#8950) 2024-06-28 00:23:09 +08:00
cpu.h [format] cleanup libcpu/aarch64 (#8950) 2024-06-28 00:23:09 +08:00
cpu_ops_common.h [format] cleanup libcpu/aarch64 (#8950) 2024-06-28 00:23:09 +08:00
cpuport.h feat: arm64: update thread self on sp-switch 2024-10-11 00:09:01 -04:00
entry_point.h [format] cleanup libcpu/aarch64 (#8950) 2024-06-28 00:23:09 +08:00
gic.h [format] cleanup libcpu/aarch64 (#8950) 2024-06-28 00:23:09 +08:00
gicv3.h [format] cleanup libcpu/aarch64 (#8950) 2024-06-28 00:23:09 +08:00
gtimer.h [format] cleanup libcpu/aarch64 (#8950) 2024-06-28 00:23:09 +08:00
hypercall.h [format] cleanup libcpu/aarch64 (#8950) 2024-06-28 00:23:09 +08:00
interrupt.h [format] cleanup libcpu/aarch64 (#8950) 2024-06-28 00:23:09 +08:00
mmu.h [format] cleanup libcpu/aarch64 (#8950) 2024-06-28 00:23:09 +08:00
psci.h [format] cleanup libcpu/aarch64 (#8950) 2024-06-28 00:23:09 +08:00
setup.h [format] cleanup libcpu/aarch64 (#8950) 2024-06-28 00:23:09 +08:00
smccc.h [format] cleanup libcpu/aarch64 (#8950) 2024-06-28 00:23:09 +08:00
tlb.h [format] cleanup libcpu/aarch64 (#8950) 2024-06-28 00:23:09 +08:00
vector_gcc.h feat: smart: user space context optimization 2024-09-19 23:02:39 -04:00