Skip to content

Commit

Permalink
arch: sparc: Remove unused offset symbols
Browse files Browse the repository at this point in the history
Removes unused offset symbols under the SPARC architecture.

Signed-off-by: Peter Mitsis <[email protected]>
  • Loading branch information
peter-mitsis authored and pull[bot] committed Jul 7, 2023
1 parent 6df641a commit 8000c9e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 35 deletions.
11 changes: 0 additions & 11 deletions arch/sparc/core/offsets/offsets.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,31 +22,20 @@ GEN_OFFSET_SYM(_callee_saved_t, psr);

GEN_OFFSET_SYM(_callee_saved_t, l0_and_l1);
GEN_OFFSET_SYM(_callee_saved_t, l2);
GEN_OFFSET_SYM(_callee_saved_t, l3);
GEN_OFFSET_SYM(_callee_saved_t, l4);
GEN_OFFSET_SYM(_callee_saved_t, l5);
GEN_OFFSET_SYM(_callee_saved_t, l6);
GEN_OFFSET_SYM(_callee_saved_t, l7);
GEN_OFFSET_SYM(_callee_saved_t, i0);
GEN_OFFSET_SYM(_callee_saved_t, i1);
GEN_OFFSET_SYM(_callee_saved_t, i2);
GEN_OFFSET_SYM(_callee_saved_t, i3);
GEN_OFFSET_SYM(_callee_saved_t, i4);
GEN_OFFSET_SYM(_callee_saved_t, i5);
GEN_OFFSET_SYM(_callee_saved_t, i6);
GEN_OFFSET_SYM(_callee_saved_t, i7);
GEN_OFFSET_SYM(_callee_saved_t, o6);
GEN_OFFSET_SYM(_callee_saved_t, o7);

/* esf member offsets */
GEN_OFFSET_SYM(z_arch_esf_t, out);
GEN_OFFSET_SYM(z_arch_esf_t, global);
GEN_OFFSET_SYM(z_arch_esf_t, pc);
GEN_OFFSET_SYM(z_arch_esf_t, npc);
GEN_OFFSET_SYM(z_arch_esf_t, psr);
GEN_OFFSET_SYM(z_arch_esf_t, wim);
GEN_OFFSET_SYM(z_arch_esf_t, tbr);
GEN_OFFSET_SYM(z_arch_esf_t, y);
GEN_ABSOLUTE_SYM(__z_arch_esf_t_SIZEOF, STACK_ROUND_UP(sizeof(z_arch_esf_t)));

/*
Expand Down
24 changes: 0 additions & 24 deletions arch/sparc/include/offsets_short_arch.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,51 +18,27 @@
#define _thread_offset_to_l2 \
(___thread_t_callee_saved_OFFSET + ___callee_saved_t_l2_OFFSET)

#define _thread_offset_to_l3 \
(___thread_t_callee_saved_OFFSET + ___callee_saved_t_l3_OFFSET)

#define _thread_offset_to_l4 \
(___thread_t_callee_saved_OFFSET + ___callee_saved_t_l4_OFFSET)

#define _thread_offset_to_l5 \
(___thread_t_callee_saved_OFFSET + ___callee_saved_t_l5_OFFSET)

#define _thread_offset_to_l6 \
(___thread_t_callee_saved_OFFSET + ___callee_saved_t_l6_OFFSET)

#define _thread_offset_to_l7 \
(___thread_t_callee_saved_OFFSET + ___callee_saved_t_l7_OFFSET)

#define _thread_offset_to_i0 \
(___thread_t_callee_saved_OFFSET + ___callee_saved_t_i0_OFFSET)

#define _thread_offset_to_i1 \
(___thread_t_callee_saved_OFFSET + ___callee_saved_t_i1_OFFSET)

#define _thread_offset_to_i2 \
(___thread_t_callee_saved_OFFSET + ___callee_saved_t_i2_OFFSET)

#define _thread_offset_to_i3 \
(___thread_t_callee_saved_OFFSET + ___callee_saved_t_i3_OFFSET)

#define _thread_offset_to_i4 \
(___thread_t_callee_saved_OFFSET + ___callee_saved_t_i4_OFFSET)

#define _thread_offset_to_i5 \
(___thread_t_callee_saved_OFFSET + ___callee_saved_t_i5_OFFSET)

#define _thread_offset_to_i6 \
(___thread_t_callee_saved_OFFSET + ___callee_saved_t_i6_OFFSET)

#define _thread_offset_to_i7 \
(___thread_t_callee_saved_OFFSET + ___callee_saved_t_i7_OFFSET)

#define _thread_offset_to_o6 \
(___thread_t_callee_saved_OFFSET + ___callee_saved_t_o6_OFFSET)

#define _thread_offset_to_o7 \
(___thread_t_callee_saved_OFFSET + ___callee_saved_t_o7_OFFSET)

#define _thread_offset_to_psr \
(___thread_t_callee_saved_OFFSET + ___callee_saved_t_psr_OFFSET)

Expand Down

0 comments on commit 8000c9e

Please sign in to comment.