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/percpu.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/percpu.h')
-rw-r--r-- | xen/include/asm-x86/percpu.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/include/asm-x86/percpu.h b/xen/include/asm-x86/percpu.h index e6faa8ce07..604ff0d7b0 100644 --- a/xen/include/asm-x86/percpu.h +++ b/xen/include/asm-x86/percpu.h @@ -9,7 +9,7 @@ void percpu_init_areas(void); /* Separate out the type, so (int[3], foo) works. */ #define __DEFINE_PER_CPU(type, name, suffix) \ - __attribute__((__section__(".bss.percpu" #suffix))) \ + __section(".bss.percpu" #suffix) \ __typeof__(type) per_cpu_##name /* var is in discarded region: offset to particular copy we want */ |