Lines Matching refs:base_reg
39 #define LOAD_PT_INS(base_reg) \ argument
40 ldd [%base_reg + STACKFRAME_SZ + PT_I0], %i0; \
41 ldd [%base_reg + STACKFRAME_SZ + PT_I2], %i2; \
42 ldd [%base_reg + STACKFRAME_SZ + PT_I4], %i4; \
43 ldd [%base_reg + STACKFRAME_SZ + PT_I6], %i6;
45 #define LOAD_PT_GLOBALS(base_reg) \ argument
46 ld [%base_reg + STACKFRAME_SZ + PT_G1], %g1; \
47 ldd [%base_reg + STACKFRAME_SZ + PT_G2], %g2; \
48 ldd [%base_reg + STACKFRAME_SZ + PT_G4], %g4; \
49 ldd [%base_reg + STACKFRAME_SZ + PT_G6], %g6;
51 #define LOAD_PT_YREG(base_reg, scratch) \ argument
52 ld [%base_reg + STACKFRAME_SZ + PT_Y], %scratch; \
55 #define LOAD_PT_PRIV(base_reg, pt_psr, pt_pc, pt_npc) \ argument
56 ld [%base_reg + STACKFRAME_SZ + PT_PSR], %pt_psr; \
57 ld [%base_reg + STACKFRAME_SZ + PT_PC], %pt_pc; \
58 ld [%base_reg + STACKFRAME_SZ + PT_NPC], %pt_npc;
60 #define LOAD_PT_ALL(base_reg, pt_psr, pt_pc, pt_npc, scratch) \ argument
61 LOAD_PT_YREG(base_reg, scratch) \
62 LOAD_PT_INS(base_reg) \
63 LOAD_PT_GLOBALS(base_reg) \
64 LOAD_PT_PRIV(base_reg, pt_psr, pt_pc, pt_npc)
66 #define STORE_PT_INS(base_reg) \ argument
67 std %i0, [%base_reg + STACKFRAME_SZ + PT_I0]; \
68 std %i2, [%base_reg + STACKFRAME_SZ + PT_I2]; \
69 std %i4, [%base_reg + STACKFRAME_SZ + PT_I4]; \
70 std %i6, [%base_reg + STACKFRAME_SZ + PT_I6];
72 #define STORE_PT_GLOBALS(base_reg) \ argument
73 st %g1, [%base_reg + STACKFRAME_SZ + PT_G1]; \
74 std %g2, [%base_reg + STACKFRAME_SZ + PT_G2]; \
75 std %g4, [%base_reg + STACKFRAME_SZ + PT_G4]; \
76 std %g6, [%base_reg + STACKFRAME_SZ + PT_G6];
78 #define STORE_PT_YREG(base_reg, scratch) \ argument
80 st %scratch, [%base_reg + STACKFRAME_SZ + PT_Y];
82 #define STORE_PT_PRIV(base_reg, pt_psr, pt_pc, pt_npc) \ argument
83 st %pt_psr, [%base_reg + STACKFRAME_SZ + PT_PSR]; \
84 st %pt_pc, [%base_reg + STACKFRAME_SZ + PT_PC]; \
85 st %pt_npc, [%base_reg + STACKFRAME_SZ + PT_NPC];
87 #define STORE_PT_ALL(base_reg, reg_psr, reg_pc, reg_npc, g_scratch) \ argument
88 STORE_PT_PRIV(base_reg, reg_psr, reg_pc, reg_npc) \
89 STORE_PT_GLOBALS(base_reg) \
90 STORE_PT_YREG(base_reg, g_scratch) \
91 STORE_PT_INS(base_reg)