Linux Audio

Check our new training course

Loading...
v5.4
 1/* SPDX-License-Identifier: GPL-2.0-or-later */
 2/*
 3 * Copyright (C) 2015-2017 Josh Poimboeuf <jpoimboe@redhat.com>
 
 
 
 
 
 
 
 
 
 
 
 
 
 4 */
 5
 6#ifndef _OBJTOOL_CFI_H
 7#define _OBJTOOL_CFI_H
 8
 9#define CFI_UNDEFINED		-1
10#define CFI_CFA			-2
11#define CFI_SP_INDIRECT		-3
12#define CFI_BP_INDIRECT		-4
13
14#define CFI_AX			0
15#define CFI_DX			1
16#define CFI_CX			2
17#define CFI_BX			3
18#define CFI_SI			4
19#define CFI_DI			5
20#define CFI_BP			6
21#define CFI_SP			7
22#define CFI_R8			8
23#define CFI_R9			9
24#define CFI_R10			10
25#define CFI_R11			11
26#define CFI_R12			12
27#define CFI_R13			13
28#define CFI_R14			14
29#define CFI_R15			15
30#define CFI_RA			16
31#define CFI_NUM_REGS		17
32
33struct cfi_reg {
34	int base;
35	int offset;
36};
37
38struct cfi_state {
39	struct cfi_reg cfa;
40	struct cfi_reg regs[CFI_NUM_REGS];
41};
42
43#endif /* _OBJTOOL_CFI_H */
v4.17
 
 1/*
 2 * Copyright (C) 2015-2017 Josh Poimboeuf <jpoimboe@redhat.com>
 3 *
 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.
 8 *
 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.
13 *
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/>.
16 */
17
18#ifndef _OBJTOOL_CFI_H
19#define _OBJTOOL_CFI_H
20
21#define CFI_UNDEFINED		-1
22#define CFI_CFA			-2
23#define CFI_SP_INDIRECT		-3
24#define CFI_BP_INDIRECT		-4
25
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
44
45struct cfi_reg {
46	int base;
47	int offset;
48};
49
50struct cfi_state {
51	struct cfi_reg cfa;
52	struct cfi_reg regs[CFI_NUM_REGS];
53};
54
55#endif /* _OBJTOOL_CFI_H */