diff options
author | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2006-01-09 11:31:19 +0100 |
---|---|---|
committer | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2006-01-09 11:31:19 +0100 |
commit | 4536b32f7c1cdd366b4a2d052088a13e761db789 (patch) | |
tree | 127592c7a0b4a698c7af011d2d71590792177ea0 /xen/include/xen/config.h | |
parent | 171dd16155ab6241584247efd0c8d37e160b3851 (diff) | |
download | xen-4536b32f7c1cdd366b4a2d052088a13e761db789.tar.gz xen-4536b32f7c1cdd366b4a2d052088a13e761db789.tar.bz2 xen-4536b32f7c1cdd366b4a2d052088a13e761db789.zip |
Allow HYPERVISOR_VIRT_START/END public definitions to be
used in assembly files. Check that the public and private
definitions of these constants match up at run time.
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/include/xen/config.h')
-rw-r--r-- | xen/include/xen/config.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/xen/include/xen/config.h b/xen/include/xen/config.h index e59bb86a7c..519dd4a3e5 100644 --- a/xen/include/xen/config.h +++ b/xen/include/xen/config.h @@ -43,4 +43,13 @@ #define __STR(...) #__VA_ARGS__ #define STR(...) __STR(__VA_ARGS__) +#ifndef __ASSEMBLY__ +/* Turn a plain number into a C unsigned long constant. */ +#define __mk_unsigned_long(x) x ## UL +#define mk_unsigned_long(x) __mk_unsigned_long(x) +#else /* __ASSEMBLY__ */ +/* In assembly code we cannot use C numeric constant suffixes. */ +#define mk_unsigned_long(x) x +#endif /* !__ASSEMBLY__ */ + #endif /* __XEN_CONFIG_H__ */ |