Skip to content

Commit db4834d

Browse files
committed
arch: rename struct _callee_saved to struct arch_csf
Rename every architecture's `struct _callee_saved` to `struct arch_csf`. Signed-off-by: Yong Cong Sin <[email protected]> Signed-off-by: Yong Cong Sin <[email protected]>
1 parent 17545c1 commit db4834d

File tree

17 files changed

+38
-38
lines changed

17 files changed

+38
-38
lines changed

arch/arm/core/fatal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ static void esf_dump(const struct arch_esf *esf)
4747
LOG_ERR("fpscr: 0x%08x", esf->fpu.fpscr);
4848
#endif
4949
#if defined(CONFIG_EXTRA_EXCEPTION_INFO)
50-
const struct _callee_saved *callee = esf->extra_info.callee;
50+
const struct arch_csf *callee = esf->extra_info.callee;
5151

5252
if (callee != NULL) {
5353
LOG_ERR("r4/v1: 0x%08x r5/v2: 0x%08x r6/v3: 0x%08x",

arch/arm/core/offsets/offsets_aarch32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ GEN_ABSOLUTE_SYM(___esf_t_SIZEOF, sizeof(_esf_t));
6868

6969
/* size of the entire preempt registers structure */
7070

71-
GEN_ABSOLUTE_SYM(___callee_saved_t_SIZEOF, sizeof(struct _callee_saved));
71+
GEN_ABSOLUTE_SYM(___callee_saved_t_SIZEOF, sizeof(struct arch_csf));
7272

7373
#if defined(CONFIG_EXTRA_EXCEPTION_INFO)
7474
GEN_ABSOLUTE_SYM(___extra_esf_info_t_SIZEOF, sizeof(struct __extra_esf_info));

arch/riscv/core/offsets/offsets.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
#include <kernel_offsets.h>
2929

30-
/* struct _callee_saved member offsets */
30+
/* struct arch_csf member offsets */
3131
GEN_OFFSET_SYM(_callee_saved_t, sp);
3232
GEN_OFFSET_SYM(_callee_saved_t, ra);
3333
GEN_OFFSET_SYM(_callee_saved_t, s0);

include/zephyr/arch/arc/thread.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* This file contains definitions for
1212
*
1313
* struct _thread_arch
14-
* struct _callee_saved
14+
* struct arch_csf
1515
*
1616
* necessary to instantiate instances of struct k_thread.
1717
*/
@@ -34,10 +34,10 @@
3434
extern "C" {
3535
#endif
3636

37-
struct _callee_saved {
37+
struct arch_csf {
3838
uintptr_t sp; /* r28 */
3939
};
40-
typedef struct _callee_saved _callee_saved_t;
40+
typedef struct arch_csf _callee_saved_t;
4141

4242
struct _thread_arch {
4343

include/zephyr/arch/arm/thread.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* This file contains definitions for
1212
*
1313
* struct _thread_arch
14-
* struct _callee_saved
14+
* struct arch_csf
1515
*
1616
* necessary to instantiate instances of struct k_thread.
1717
*/
@@ -22,7 +22,7 @@
2222
#ifndef _ASMLANGUAGE
2323
#include <zephyr/types.h>
2424

25-
struct _callee_saved {
25+
struct arch_csf {
2626
uint32_t v1; /* r4 */
2727
uint32_t v2; /* r5 */
2828
uint32_t v3; /* r6 */
@@ -37,7 +37,7 @@ struct _callee_saved {
3737
#endif
3838
};
3939

40-
typedef struct _callee_saved _callee_saved_t;
40+
typedef struct arch_csf _callee_saved_t;
4141

4242
#if defined(CONFIG_FPU) && defined(CONFIG_FPU_SHARING)
4343
struct _preempt_float {

include/zephyr/arch/arm64/thread.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* This file contains definitions for
1212
*
1313
* struct _thread_arch
14-
* struct _callee_saved
14+
* struct arch_csf
1515
*
1616
* necessary to instantiate instances of struct k_thread.
1717
*/
@@ -23,7 +23,7 @@
2323
#include <zephyr/types.h>
2424
#include <zephyr/arch/arm64/mm.h>
2525

26-
struct _callee_saved {
26+
struct arch_csf {
2727
uint64_t x19;
2828
uint64_t x20;
2929
uint64_t x21;
@@ -40,7 +40,7 @@ struct _callee_saved {
4040
uint64_t lr;
4141
};
4242

43-
typedef struct _callee_saved _callee_saved_t;
43+
typedef struct arch_csf _callee_saved_t;
4444

4545
struct z_arm64_fp_context {
4646
__int128 q0, q1, q2, q3, q4, q5, q6, q7;

include/zephyr/arch/mips/thread.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* This file contains definitions for
1414
*
1515
* struct _thread_arch
16-
* struct _callee_saved
16+
* struct arch_csf
1717
*
1818
* necessary to instantiate instances of struct k_thread.
1919
*/
@@ -28,7 +28,7 @@
2828
* The following structure defines the list of registers that need to be
2929
* saved/restored when a cooperative context switch occurs.
3030
*/
31-
struct _callee_saved {
31+
struct arch_csf {
3232
unsigned long sp; /* Stack pointer */
3333

3434
unsigned long s0; /* saved register */
@@ -41,7 +41,7 @@ struct _callee_saved {
4141
unsigned long s7; /* saved register */
4242
unsigned long s8; /* saved register AKA fp */
4343
};
44-
typedef struct _callee_saved _callee_saved_t;
44+
typedef struct arch_csf _callee_saved_t;
4545

4646
struct _thread_arch {
4747
uint32_t swap_return_value; /* Return value of z_swap() */

include/zephyr/arch/nios2/thread.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* This file contains definitions for
1212
*
1313
* struct _thread_arch
14-
* struct _callee_saved
14+
* struct arch_csf
1515
*
1616
* necessary to instantiate instances of struct k_thread.
1717
*/
@@ -22,7 +22,7 @@
2222
#ifndef _ASMLANGUAGE
2323
#include <zephyr/types.h>
2424

25-
struct _callee_saved {
25+
struct arch_csf {
2626
/* General purpose callee-saved registers */
2727
uint32_t r16;
2828
uint32_t r17;
@@ -51,7 +51,7 @@ struct _callee_saved {
5151
uint32_t retval;
5252
};
5353

54-
typedef struct _callee_saved _callee_saved_t;
54+
typedef struct arch_csf _callee_saved_t;
5555

5656
struct _thread_arch {
5757
/* nothing for now */

include/zephyr/arch/posix/thread.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* This file contains definitions for
1313
*
1414
* struct _thread_arch
15-
* struct _callee_saved
15+
* struct arch_csf
1616
*
1717
* necessary to instantiate instances of struct k_thread.
1818
*/
@@ -27,7 +27,7 @@
2727
extern "C" {
2828
#endif
2929

30-
struct _callee_saved {
30+
struct arch_csf {
3131
/* IRQ status before irq_lock() and call to z_swap() */
3232
uint32_t key;
3333

include/zephyr/arch/riscv/thread.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* This file contains definitions for
1212
*
1313
* struct _thread_arch
14-
* struct _callee_saved
14+
* struct arch_csf
1515
*
1616
* necessary to instantiate instances of struct k_thread.
1717
*/
@@ -26,7 +26,7 @@
2626
* The following structure defines the list of registers that need to be
2727
* saved/restored when a context switch occurs.
2828
*/
29-
struct _callee_saved {
29+
struct arch_csf {
3030
unsigned long sp; /* Stack pointer, (x2 register) */
3131
unsigned long ra; /* return address */
3232

@@ -45,7 +45,7 @@ struct _callee_saved {
4545
unsigned long s11; /* saved register */
4646
#endif
4747
};
48-
typedef struct _callee_saved _callee_saved_t;
48+
typedef struct arch_csf _callee_saved_t;
4949

5050
#if !defined(RV_FP_TYPE)
5151
#ifdef CONFIG_CPU_HAS_FPU_DOUBLE_PRECISION

0 commit comments

Comments
 (0)