Skip to content

Commit

Permalink
arch: remove z_arch_esf_t
Browse files Browse the repository at this point in the history
The exception stack frame type `z_arch_esf_t` had been deprecated
since zephyrproject-rtos#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 <ycsin@meta.com>
Signed-off-by: Yong Cong Sin <yongcong.sin@gmail.com>
  • Loading branch information
ycsin committed Jan 21, 2025
1 parent f92997f commit 46d8b2b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions include/zephyr/arch/arch_interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ typedef struct z_thread_stack_element k_thread_stack_t;

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

__deprecated typedef struct arch_esf z_arch_esf_t;

/**
* @defgroup arch-timing Architecture timing APIs
* @ingroup arch-interface
Expand Down
1 change: 0 additions & 1 deletion scripts/checkpatch/typedefsfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ _cpu_arch_t
k_mem_partition_attr_t
k_timepoint_t
mbedtls_pk_context
z_arch_esf_t
pinctrl_soc_pin_t
io_rw_32
\b[a-zA-Z_][a-zA-Z0-9_]*TypeDef
Expand Down
2 changes: 1 addition & 1 deletion subsys/profiling/perf/backends/perf_riscv.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ size_t arch_perf_current_stack_trace(uintptr_t *buf, size_t size)

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

0 comments on commit 46d8b2b

Please sign in to comment.