summaryrefslogtreecommitdiff
path: root/tools/objtool/cfi.h
diff options
context:
space:
mode:
authorJulien Thierry <jthierry@redhat.com>2020-03-27 18:28:46 +0300
committerIngo Molnar <mingo@kernel.org>2020-04-22 11:53:49 +0300
commit6f8ca67683962d408c7a337664212669bd3e8355 (patch)
tree503ab5c9435f1b12293ce45555ec2986a6270ecd /tools/objtool/cfi.h
parentbfb08f220312a4634532114eb3e7062f17dfb707 (diff)
downloadlinux-6f8ca67683962d408c7a337664212669bd3e8355.tar.xz
objtool: Split out arch-specific CFI definitions
Some CFI definitions used by generic objtool code have no reason to vary from one architecture to another. Keep those definitions in generic code and move the arch-specific ones to a new arch-specific header. Signed-off-by: Julien Thierry <jthierry@redhat.com> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Miroslav Benes <mbenes@suse.cz> Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com> Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools/objtool/cfi.h')
-rw-r--r--tools/objtool/cfi.h21
1 files changed, 2 insertions, 19 deletions
diff --git a/tools/objtool/cfi.h b/tools/objtool/cfi.h
index 4427bf8ed686..1a3e7b807994 100644
--- a/tools/objtool/cfi.h
+++ b/tools/objtool/cfi.h
@@ -6,30 +6,13 @@
#ifndef _OBJTOOL_CFI_H
#define _OBJTOOL_CFI_H
+#include "cfi_regs.h"
+
#define CFI_UNDEFINED -1
#define CFI_CFA -2
#define CFI_SP_INDIRECT -3
#define CFI_BP_INDIRECT -4
-#define CFI_AX 0
-#define CFI_DX 1
-#define CFI_CX 2
-#define CFI_BX 3
-#define CFI_SI 4
-#define CFI_DI 5
-#define CFI_BP 6
-#define CFI_SP 7
-#define CFI_R8 8
-#define CFI_R9 9
-#define CFI_R10 10
-#define CFI_R11 11
-#define CFI_R12 12
-#define CFI_R13 13
-#define CFI_R14 14
-#define CFI_R15 15
-#define CFI_RA 16
-#define CFI_NUM_REGS 17
-
struct cfi_reg {
int base;
int offset;