net: usb: rtl8150: use irqsave() in USB's complete callback
[linux/fpc-iii.git] / tools / objtool / cfi.h
blob2fe883c665c7b5ed66d3d1fc6cd6b51d1a618c93
1 /*
2 * Copyright (C) 2015-2017 Josh Poimboeuf <jpoimboe@redhat.com>
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, see <http://www.gnu.org/licenses/>.
18 #ifndef _OBJTOOL_CFI_H
19 #define _OBJTOOL_CFI_H
21 #define CFI_UNDEFINED -1
22 #define CFI_CFA -2
23 #define CFI_SP_INDIRECT -3
24 #define CFI_BP_INDIRECT -4
26 #define CFI_AX 0
27 #define CFI_DX 1
28 #define CFI_CX 2
29 #define CFI_BX 3
30 #define CFI_SI 4
31 #define CFI_DI 5
32 #define CFI_BP 6
33 #define CFI_SP 7
34 #define CFI_R8 8
35 #define CFI_R9 9
36 #define CFI_R10 10
37 #define CFI_R11 11
38 #define CFI_R12 12
39 #define CFI_R13 13
40 #define CFI_R14 14
41 #define CFI_R15 15
42 #define CFI_RA 16
43 #define CFI_NUM_REGS 17
45 struct cfi_reg {
46 int base;
47 int offset;
50 struct cfi_state {
51 struct cfi_reg cfa;
52 struct cfi_reg regs[CFI_NUM_REGS];
55 #endif /* _OBJTOOL_CFI_H */