5 #include "../../util/unwind.h"
6 #include "../../util/debug.h"
8 int libunwind__arch_reg_id(int regnum
)
12 return PERF_REG_ARM_R0
;
14 return PERF_REG_ARM_R1
;
16 return PERF_REG_ARM_R2
;
18 return PERF_REG_ARM_R3
;
20 return PERF_REG_ARM_R4
;
22 return PERF_REG_ARM_R5
;
24 return PERF_REG_ARM_R6
;
26 return PERF_REG_ARM_R7
;
28 return PERF_REG_ARM_R8
;
30 return PERF_REG_ARM_R9
;
32 return PERF_REG_ARM_R10
;
34 return PERF_REG_ARM_FP
;
36 return PERF_REG_ARM_IP
;
38 return PERF_REG_ARM_SP
;
40 return PERF_REG_ARM_LR
;
42 return PERF_REG_ARM_PC
;
44 pr_err("unwind: invalid reg id %d\n", regnum
);