diff options
author | Tim Deegan <tim@xen.org> | 2012-04-11 13:10:33 +0100 |
---|---|---|
committer | Tim Deegan <tim@xen.org> | 2012-04-11 13:10:33 +0100 |
commit | 2b7aac76417d57e336f41b6f6d5b0cb301d512f8 (patch) | |
tree | 91b0a6128dd8cf4e4f673cb91321032371641109 /xen/include/asm-x86/cache.h | |
parent | 899b4c43f687dd577d90b0a875676868b8eaa835 (diff) | |
download | xen-2b7aac76417d57e336f41b6f6d5b0cb301d512f8.tar.gz xen-2b7aac76417d57e336f41b6f6d5b0cb301d512f8.tar.bz2 xen-2b7aac76417d57e336f41b6f6d5b0cb301d512f8.zip |
xen: define __section() and friends and use them for section annotations.
By itself this is just code-tidying, but it's also useful for the
following patch, which will adjust __section() for clang compiles.
Signed-off-by: Tim Deegan <tim@xen.org>
Acked-by: Keir Fraser <keir@xen.org>
Committed-by: Tim Deegan <tim@xen.org>
Diffstat (limited to 'xen/include/asm-x86/cache.h')
-rw-r--r-- | xen/include/asm-x86/cache.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/include/asm-x86/cache.h b/xen/include/asm-x86/cache.h index f5667a14fa..f4a08e786f 100644 --- a/xen/include/asm-x86/cache.h +++ b/xen/include/asm-x86/cache.h @@ -10,6 +10,6 @@ #define L1_CACHE_SHIFT (CONFIG_X86_L1_CACHE_SHIFT) #define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT) -#define __read_mostly __attribute__((__section__(".data.read_mostly"))) +#define __read_mostly __section(".data.read_mostly") #endif |