Skip to content

Commit 0e4ab72

Browse files
committed
arch: rename all esf struct to struct arch_esf
Rename every architecture's esf struct to `struct esf`. Signed-off-by: Yong Cong Sin <[email protected]>
1 parent 7eb27ab commit 0e4ab72

File tree

23 files changed

+42
-39
lines changed

23 files changed

+42
-39
lines changed

arch/arc/include/kernel_arch_data.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ extern "C" {
3636
#endif
3737

3838
#ifdef CONFIG_ARC_HAS_SECURE
39-
struct _irq_stack_frame {
39+
struct arch_esf {
4040
#ifdef CONFIG_ARC_HAS_ZOL
4141
uintptr_t lp_end;
4242
uintptr_t lp_start;
@@ -72,7 +72,7 @@ struct _irq_stack_frame {
7272
uintptr_t status32;
7373
};
7474
#else
75-
struct _irq_stack_frame {
75+
struct arch_esf {
7676
uintptr_t r0;
7777
uintptr_t r1;
7878
uintptr_t r2;
@@ -108,7 +108,7 @@ struct _irq_stack_frame {
108108
};
109109
#endif
110110

111-
typedef struct _irq_stack_frame _isf_t;
111+
typedef struct arch_esf _isf_t;
112112

113113

114114

arch/arm/include/kernel_arch_data.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
extern "C" {
4343
#endif
4444

45-
typedef struct __esf _esf_t;
45+
typedef struct arch_esf _esf_t;
4646
typedef struct __basic_sf _basic_sf_t;
4747
#if defined(CONFIG_FPU) && defined(CONFIG_FPU_SHARING)
4848
typedef struct __fpu_sf _fpu_sf_t;

arch/arm64/core/thread.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ void arch_new_thread(struct k_thread *thread, k_thread_stack_t *stack,
102102
* dropping into EL0.
103103
*/
104104

105-
pInitCtx = Z_STACK_PTR_TO_FRAME(struct __esf, stack_ptr);
105+
pInitCtx = Z_STACK_PTR_TO_FRAME(struct arch_esf, stack_ptr);
106106

107107
pInitCtx->x0 = (uint64_t)entry;
108108
pInitCtx->x1 = (uint64_t)p1;

arch/arm64/include/kernel_arch_data.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
extern "C" {
3737
#endif
3838

39-
typedef struct __esf _esf_t;
39+
typedef struct arch_esf _esf_t;
4040
typedef struct __basic_sf _basic_sf_t;
4141

4242
#ifdef __cplusplus

arch/mips/core/thread.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ void arch_new_thread(struct k_thread *thread, k_thread_stack_t *stack,
1919
char *stack_ptr, k_thread_entry_t entry,
2020
void *p1, void *p2, void *p3)
2121
{
22-
struct __esf *stack_init;
22+
struct arch_esf *stack_init;
2323

2424
/* Initial stack frame for thread */
25-
stack_init = (struct __esf *)Z_STACK_PTR_ALIGN(
26-
Z_STACK_PTR_TO_FRAME(struct __esf, stack_ptr)
25+
stack_init = (struct arch_esf *)Z_STACK_PTR_ALIGN(
26+
Z_STACK_PTR_TO_FRAME(struct arch_esf, stack_ptr)
2727
);
2828

2929
/* Setup the initial stack frame */

arch/riscv/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ config RISCV_SOC_HAS_ISR_STACKING
8888
guarded by !_ASMLANGUAGE. The ESF should be defined to account for
8989
the hardware stacked registers in the proper order as they are
9090
saved on the stack by the hardware, and the registers saved by the
91-
software macros. The structure must be called '__esf'.
91+
software macros. The structure must be called 'struct arch_esf'.
9292

9393
config RISCV_SOC_HAS_CUSTOM_IRQ_HANDLING
9494
bool

arch/riscv/core/thread.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ void arch_new_thread(struct k_thread *thread, k_thread_stack_t *stack,
2323
void *p1, void *p2, void *p3)
2424
{
2525
extern void z_riscv_thread_start(void);
26-
struct __esf *stack_init;
26+
struct arch_esf *stack_init;
2727

2828
#ifdef CONFIG_RISCV_SOC_CONTEXT_SAVE
2929
const struct soc_esf soc_esf_init = {SOC_ESF_INIT};
3030
#endif
3131

3232
/* Initial stack frame for thread */
33-
stack_init = (struct __esf *)Z_STACK_PTR_ALIGN(
34-
Z_STACK_PTR_TO_FRAME(struct __esf, stack_ptr)
33+
stack_init = (struct arch_esf *)Z_STACK_PTR_ALIGN(
34+
Z_STACK_PTR_TO_FRAME(struct arch_esf, stack_ptr)
3535
);
3636

3737
/* Setup the initial stack frame */

include/zephyr/arch/arc/v2/exception.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ extern "C" {
2020

2121
#ifdef _ASMLANGUAGE
2222
#else
23-
typedef struct _irq_stack_frame z_arch_esf_t;
23+
typedef struct arch_esf z_arch_esf_t;
2424
#endif
2525

2626
#ifdef __cplusplus

include/zephyr/arch/arm/cortex_a_r/exception.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ struct __extra_esf_info {
5454
};
5555
#endif /* CONFIG_EXTRA_EXCEPTION_INFO */
5656

57-
struct __esf {
57+
struct arch_esf {
5858
#if defined(CONFIG_EXTRA_EXCEPTION_INFO)
5959
struct __extra_esf_info extra_info;
6060
#endif
@@ -75,7 +75,7 @@ struct __esf {
7575

7676
extern uint32_t z_arm_coredump_fault_sp;
7777

78-
typedef struct __esf z_arch_esf_t;
78+
typedef struct arch_esf z_arch_esf_t;
7979

8080
extern void z_arm_exc_exit(bool fatal);
8181

include/zephyr/arch/arm/cortex_m/exception.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ struct __extra_esf_info {
9898
};
9999
#endif /* CONFIG_EXTRA_EXCEPTION_INFO */
100100

101-
struct __esf {
101+
struct arch_esf {
102102
struct __basic_sf {
103103
sys_define_gpr_with_alias(a1, r0);
104104
sys_define_gpr_with_alias(a2, r1);
@@ -119,7 +119,7 @@ struct __esf {
119119

120120
extern uint32_t z_arm_coredump_fault_sp;
121121

122-
typedef struct __esf z_arch_esf_t;
122+
typedef struct arch_esf z_arch_esf_t;
123123

124124
extern void z_arm_exc_exit(void);
125125

0 commit comments

Comments
 (0)