Linux Audio

Check our new training course

Loading...
v6.13.7
 1/* SPDX-License-Identifier: GPL-2.0-only */
 2/*
 3 * include/asm-arm/unified.h - Unified Assembler Syntax helper macros
 4 *
 5 * Copyright (C) 2008 ARM Limited
 
 
 
 
 
 
 
 
 
 
 
 
 
 6 */
 7
 8#ifndef __ASM_UNIFIED_H
 9#define __ASM_UNIFIED_H
10
11#if defined(__ASSEMBLY__)
12	.syntax unified
13#else
14__asm__(".syntax unified");
15#endif
16
17#ifdef CONFIG_CPU_V7M
18#define AR_CLASS(x...)
19#define M_CLASS(x...)	x
20#else
21#define AR_CLASS(x...)	x
22#define M_CLASS(x...)
23#endif
24
25#ifdef CONFIG_THUMB2_KERNEL
 
 
 
 
26
27/* The CPSR bit describing the instruction set (Thumb) */
28#define PSR_ISETSTATE	PSR_T_BIT
29
30#define ARM(x...)
31#define THUMB(x...)	x
32#ifdef __ASSEMBLY__
33#define W(instr)	instr.w
34#else
35#define WASM(instr)	#instr ".w"
36#endif
37
38#else	/* !CONFIG_THUMB2_KERNEL */
39
40/* The CPSR bit describing the instruction set (ARM) */
41#define PSR_ISETSTATE	0
42
43#define ARM(x...)	x
44#define THUMB(x...)
45#ifdef __ASSEMBLY__
46#define W(instr)	instr
47#else
48#define WASM(instr)	#instr
49#endif
50
51#endif	/* CONFIG_THUMB2_KERNEL */
52
53#endif	/* !__ASM_UNIFIED_H */
v4.17
 
 1/*
 2 * include/asm-arm/unified.h - Unified Assembler Syntax helper macros
 3 *
 4 * Copyright (C) 2008 ARM Limited
 5 *
 6 * This program is free software; you can redistribute it and/or modify
 7 * it under the terms of the GNU General Public License version 2 as
 8 * published by the Free Software Foundation.
 9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 */
19
20#ifndef __ASM_UNIFIED_H
21#define __ASM_UNIFIED_H
22
23#if defined(__ASSEMBLY__)
24	.syntax unified
25#else
26__asm__(".syntax unified");
27#endif
28
29#ifdef CONFIG_CPU_V7M
30#define AR_CLASS(x...)
31#define M_CLASS(x...)	x
32#else
33#define AR_CLASS(x...)	x
34#define M_CLASS(x...)
35#endif
36
37#ifdef CONFIG_THUMB2_KERNEL
38
39#if __GNUC__ < 4
40#error Thumb-2 kernel requires gcc >= 4
41#endif
42
43/* The CPSR bit describing the instruction set (Thumb) */
44#define PSR_ISETSTATE	PSR_T_BIT
45
46#define ARM(x...)
47#define THUMB(x...)	x
48#ifdef __ASSEMBLY__
49#define W(instr)	instr.w
50#else
51#define WASM(instr)	#instr ".w"
52#endif
53
54#else	/* !CONFIG_THUMB2_KERNEL */
55
56/* The CPSR bit describing the instruction set (ARM) */
57#define PSR_ISETSTATE	0
58
59#define ARM(x...)	x
60#define THUMB(x...)
61#ifdef __ASSEMBLY__
62#define W(instr)	instr
63#else
64#define WASM(instr)	#instr
65#endif
66
67#endif	/* CONFIG_THUMB2_KERNEL */
68
69#endif	/* !__ASM_UNIFIED_H */