diff options
author | Leif Lindholm <leif.lindholm@arm.com> | 2011-12-12 19:31:55 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-12-13 08:52:02 +0000 |
commit | 0c9030deaf59d444f9e757ee73d6d81bfe2d3376 (patch) | |
tree | 000b8008b69352cb46ecbd116ffa2d6bd343d4a4 /arch/arm/include/asm/opcodes.h | |
parent | 9904f7933bd3b6aef880f7a91ddd8b19420ffd11 (diff) | |
download | blackbird-op-linux-0c9030deaf59d444f9e757ee73d6d81bfe2d3376.tar.gz blackbird-op-linux-0c9030deaf59d444f9e757ee73d6d81bfe2d3376.zip |
ARM: 7206/1: Add generic ARM instruction set condition code checks.
This patch breaks the ARM condition checking code out of nwfpe/fpopcode.{ch}
into a standalone file for opcode operations. It also modifies the code
somewhat for coding style adherence, and adds some temporary variables for
increased readability.
Signed-off-by: Leif Lindholm <leif.lindholm@arm.com>
Reviewed-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/include/asm/opcodes.h')
-rw-r--r-- | arch/arm/include/asm/opcodes.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/arm/include/asm/opcodes.h b/arch/arm/include/asm/opcodes.h new file mode 100644 index 000000000000..c0efdd60966f --- /dev/null +++ b/arch/arm/include/asm/opcodes.h @@ -0,0 +1,20 @@ +/* + * arch/arm/include/asm/opcodes.h + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ + +#ifndef __ASM_ARM_OPCODES_H +#define __ASM_ARM_OPCODES_H + +#ifndef __ASSEMBLY__ +extern asmlinkage unsigned int arm_check_condition(u32 opcode, u32 psr); +#endif + +#define ARM_OPCODE_CONDTEST_FAIL 0 +#define ARM_OPCODE_CONDTEST_PASS 1 +#define ARM_OPCODE_CONDTEST_UNCOND 2 + +#endif /* __ASM_ARM_OPCODES_H */ |