File tree 1 file changed +11
-13
lines changed
1 file changed +11
-13
lines changed Original file line number Diff line number Diff line change 12
12
#include <asm/asm-offsets.h>
13
13
#include <asm/ftrace.h>
14
14
15
- #define ABI_SIZE_ON_STACK 80
16
-
17
15
.text
18
16
19
17
.macro SAVE_ABI_STATE
28
26
* register if a0 was not saved.
29
27
*/
30
28
.macro SAVE_RET_ABI_STATE
31
- addi sp, sp, -ABI_SIZE_ON_STACK
32
- REG_S ra, 1*SZREG (sp)
33
- REG_S s0, 8*SZREG (sp)
34
- REG_S a0, 10*SZREG (sp)
35
- REG_S a1, 11*SZREG (sp)
36
- addi s0, sp, ABI_SIZE_ON_STACK
29
+ addi sp, sp, -FREGS_SIZE_ON_STACK
30
+ REG_S ra, FREGS_RA (sp)
31
+ REG_S s0, FREGS_S0 (sp)
32
+ REG_S a0, FREGS_A0 (sp)
33
+ REG_S a1, FREGS_A1 (sp)
34
+ addi s0, sp, FREGS_SIZE_ON_STACK
37
35
.endm
38
36
39
37
.macro RESTORE_ABI_STATE
43
41
.endm
44
42
45
43
.macro RESTORE_RET_ABI_STATE
46
- REG_L ra, 1*SZREG (sp)
47
- REG_L s0, 8*SZREG (sp)
48
- REG_L a0, 10*SZREG (sp)
49
- REG_L a1, 11*SZREG (sp)
50
- addi sp, sp, ABI_SIZE_ON_STACK
44
+ REG_L ra, FREGS_RA (sp)
45
+ REG_L s0, FREGS_S0 (sp)
46
+ REG_L a0, FREGS_A0 (sp)
47
+ REG_L a1, FREGS_A1 (sp)
48
+ addi sp, sp, FREGS_SIZE_ON_STACK
51
49
.endm
52
50
53
51
SYM_TYPED_FUNC_START(ftrace_stub)
You can’t perform that action at this time.
0 commit comments