2 * arch/arm/include/asm/assembler.h
4 * Copyright (C) 1996-2000 Russell King
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.
10 * This file contains arm architecture specific defines
11 * for the different processors.
13 * Do not include any C declarations in this file - it is included by
18 * Endian independent macros for shifting bytes within registers.
23 #define get_byte_0 lsl #0
24 #define get_byte_1 lsr #8
25 #define get_byte_2 lsr #16
26 #define get_byte_3 lsr #24
27 #define put_byte_0 lsl #0
28 #define put_byte_1 lsl #8
29 #define put_byte_2 lsl #16
30 #define put_byte_3 lsl #24
34 #define get_byte_0 lsr #24
35 #define get_byte_1 lsr #16
36 #define get_byte_2 lsr #8
37 #define get_byte_3 lsl #0
38 #define put_byte_0 lsl #24
39 #define put_byte_1 lsl #16
40 #define put_byte_2 lsl #8
41 #define put_byte_3 lsl #0
45 * Data preload for architectures that support it
47 #if defined(__ARM_ARCH_5E__) || defined(__ARM_ARCH_5TE__) || \
48 defined(__ARM_ARCH_6__) || defined(__ARM_ARCH_6J__) || \
49 defined(__ARM_ARCH_6T2__) || defined(__ARM_ARCH_6Z__) || \
50 defined(__ARM_ARCH_6ZK__) || defined(__ARM_ARCH_7A__) || \
51 defined(__ARM_ARCH_7R__)
52 #define PLD(code...) code
60 #define CALGN(code...) code