summaryrefslogtreecommitdiff
path: root/arch/arm/include/asm
diff options
context:
space:
mode:
authorAndre Przywara <andre.przywara@arm.com>2017-01-02 11:48:30 +0000
committerJagan Teki <jagan@openedev.com>2017-01-04 16:37:41 +0100
commit2a6713b09b8da58572338abac276aa764bb6eadd (patch)
treeddaf3da4360dc6530937b22fd7d1526d7b917ea0 /arch/arm/include/asm
parent1c853629d936f88d7d41bdd01a3bd8c55391e754 (diff)
downloadu-boot-imx-2a6713b09b8da58572338abac276aa764bb6eadd.zip
u-boot-imx-2a6713b09b8da58572338abac276aa764bb6eadd.tar.gz
u-boot-imx-2a6713b09b8da58572338abac276aa764bb6eadd.tar.bz2
move UL() macro from armv8/mmu.h into common.h
The UL() macro is pretty useful in sharing constants between assembly and C files while still being able to specify a type for C. Move the macro from an armv8 specific header into a common header file to be able to use it by arm code (for instance) as well. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Reviewed-by: Alexander Graf <agraf@suse.de> Reviewed-by: Jagan Teki <jagan@openedev.com>
Diffstat (limited to 'arch/arm/include/asm')
-rw-r--r--arch/arm/include/asm/armv8/mmu.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/arch/arm/include/asm/armv8/mmu.h b/arch/arm/include/asm/armv8/mmu.h
index aa0f3c4..e9b4cdb 100644
--- a/arch/arm/include/asm/armv8/mmu.h
+++ b/arch/arm/include/asm/armv8/mmu.h
@@ -8,14 +8,6 @@
#ifndef _ASM_ARMV8_MMU_H_
#define _ASM_ARMV8_MMU_H_
-#ifdef __ASSEMBLY__
-#define _AC(X, Y) X
-#else
-#define _AC(X, Y) (X##Y)
-#endif
-
-#define UL(x) _AC(x, UL)
-
/***************************************************************/
/*
* The following definitions are related each other, shoud be