zephyr/arch/riscv/core
Yong Cong Sin 2bb78f3e1a arch: riscv: stacktrace: use current thread if `thread` is NULL
Zephyr's thread stack size is not fixed, in most cases we would
need the `thread` argument to obtain the `stack_info`, unless
we are unwinding the irq stack, since that is fixed.

Otherwise we can only safely print the current `mepc` register,
unwinding the esf without the stack info of a thread can
result in undefined behavior.

Signed-off-by: Yong Cong Sin <ycsin@meta.com>
2024-06-21 14:55:27 -04:00
..
offsets
CMakeLists.txt arch: riscv: skip `isr.S` when SW ISR table is not generated 2024-06-13 16:57:32 -04:00
asm_macros.inc
coredump.c
cpu_idle.c
fatal.c arch: riscv: stop printing symbol name at mepc 2024-06-13 16:46:48 -04:00
fpu.S
fpu.c
irq_manage.c
irq_offload.c
isr.S
pmp.S
pmp.c
prep_c.c
reboot.c
reset.S
semihost.c
smp.c arch: call arch_smp_init() directly, do not use SYS_INIT 2024-06-12 18:23:54 -04:00
stacktrace.c arch: riscv: stacktrace: use current thread if `thread` is NULL 2024-06-21 14:55:27 -04:00
switch.S
thread.c
tls.c
userspace.S
vector_table.ld