5 #include "../../util/unwind.h"
6 #include "../../util/debug.h"
8 #ifdef HAVE_ARCH_X86_64_SUPPORT
9 int libunwind__arch_reg_id(int regnum
)
45 id
= PERF_REG_X86_R10
;
48 id
= PERF_REG_X86_R11
;
51 id
= PERF_REG_X86_R12
;
54 id
= PERF_REG_X86_R13
;
57 id
= PERF_REG_X86_R14
;
60 id
= PERF_REG_X86_R15
;
66 pr_err("unwind: invalid reg id %d\n", regnum
);
73 int libunwind__arch_reg_id(int regnum
)
100 id
= PERF_REG_X86_SP
;
103 id
= PERF_REG_X86_IP
;
106 pr_err("unwind: invalid reg id %d\n", regnum
);
112 #endif /* HAVE_ARCH_X86_64_SUPPORT */