Skip to content

Commit 085df8b

Browse files
ycsinkartben
authored andcommitted
arch: remove z_arch_esf_t
The exception stack frame type `z_arch_esf_t` had been deprecated since #73593 for 2 releases, it is not used in the kernel since, and applications/drivers should have been updated to use the `struct arch_esf` now, remove it. Signed-off-by: Yong Cong Sin <[email protected]> Signed-off-by: Yong Cong Sin <[email protected]>
1 parent 588ccd9 commit 085df8b

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

include/zephyr/arch/arch_interface.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ typedef struct z_thread_stack_element k_thread_stack_t;
4747

4848
typedef void (*k_thread_entry_t)(void *p1, void *p2, void *p3);
4949

50-
__deprecated typedef struct arch_esf z_arch_esf_t;
51-
5250
/**
5351
* @defgroup arch-timing Architecture timing APIs
5452
* @ingroup arch-interface

scripts/checkpatch/typedefsfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ _cpu_arch_t
22
k_mem_partition_attr_t
33
k_timepoint_t
44
mbedtls_pk_context
5-
z_arch_esf_t
65
pinctrl_soc_pin_t
76
io_rw_32
87
\b[a-zA-Z_][a-zA-Z0-9_]*TypeDef

subsys/profiling/perf/backends/perf_riscv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ size_t arch_perf_current_stack_trace(uintptr_t *buf, size_t size)
3434

3535
/*
3636
* In riscv (arch/riscv/core/isr.S) ra, ip($mepc) and fp($s0) are saved
37-
* at the beginning of _isr_wrapper in order, specified by z_arch_esf_t.
37+
* at the beginning of _isr_wrapper in order, specified by struct arch_esf.
3838
* Then, before calling interruption handler, core switch $sp to
3939
* _current_cpu->irq_stack and save $sp with offset -16 on irq stack
4040
*

0 commit comments

Comments
 (0)