1 // SPDX-License-Identifier: GPL-2.0
6 #include "../../util/unwind.h"
7 #include "../../util/debug.h"
9 int libunwind__arch_reg_id(int regnum)
13 return PERF_REG_ARM_R0;
15 return PERF_REG_ARM_R1;
17 return PERF_REG_ARM_R2;
19 return PERF_REG_ARM_R3;
21 return PERF_REG_ARM_R4;
23 return PERF_REG_ARM_R5;
25 return PERF_REG_ARM_R6;
27 return PERF_REG_ARM_R7;
29 return PERF_REG_ARM_R8;
31 return PERF_REG_ARM_R9;
33 return PERF_REG_ARM_R10;
35 return PERF_REG_ARM_FP;
37 return PERF_REG_ARM_IP;
39 return PERF_REG_ARM_SP;
41 return PERF_REG_ARM_LR;
43 return PERF_REG_ARM_PC;
45 pr_err("unwind: invalid reg id %d\n", regnum);