1 /*
2  * Copyright (c) 2019-2020 Cobham Gaisler AB
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 /**
8  * @file
9  * @brief SPARC kernel structure member offset definition file
10  *
11  * This module is responsible for the generation of the absolute symbols whose
12  * value represents the member offsets for various SPARC kernel structures.
13  */
14 
15 #include <zephyr/kernel.h>
16 #include <kernel_arch_data.h>
17 #include <gen_offset.h>
18 #include <kernel_offsets.h>
19 
20 GEN_OFFSET_SYM(_callee_saved_t, y);
21 GEN_OFFSET_SYM(_callee_saved_t, psr);
22 
23 GEN_OFFSET_SYM(_callee_saved_t, l0_and_l1);
24 GEN_OFFSET_SYM(_callee_saved_t, l2);
25 GEN_OFFSET_SYM(_callee_saved_t, l4);
26 GEN_OFFSET_SYM(_callee_saved_t, l6);
27 GEN_OFFSET_SYM(_callee_saved_t, i0);
28 GEN_OFFSET_SYM(_callee_saved_t, i2);
29 GEN_OFFSET_SYM(_callee_saved_t, i4);
30 GEN_OFFSET_SYM(_callee_saved_t, i6);
31 GEN_OFFSET_SYM(_callee_saved_t, o6);
32 
33 /* esf member offsets */
34 GEN_OFFSET_SYM(z_arch_esf_t, out);
35 GEN_OFFSET_SYM(z_arch_esf_t, global);
36 GEN_OFFSET_SYM(z_arch_esf_t, npc);
37 GEN_OFFSET_SYM(z_arch_esf_t, psr);
38 GEN_OFFSET_SYM(z_arch_esf_t, tbr);
39 GEN_ABSOLUTE_SYM(__z_arch_esf_t_SIZEOF, STACK_ROUND_UP(sizeof(z_arch_esf_t)));
40 
41 GEN_ABS_SYM_END
42