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>
This commit is contained in:
committed by
Jagan Teki
parent
1c853629d9
commit
2a6713b09b
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user