# HG changeset patch # User yamahata@xxxxxxxxxxxxx # Date 1160121430 -32400 # Node ID 5e54b8eb76f41f73ab49ebee0db1691223b51f04 # Parent 6b2ab43116dbe81b799069f92254248a4cc4c9c7 __read_mostly PATCHNAME: __read_mostly Signed-off-by: Isaku Yamahata diff -r 6b2ab43116db -r 5e54b8eb76f4 xen/arch/ia64/xen/xen.lds.S --- a/xen/arch/ia64/xen/xen.lds.S Fri Oct 06 17:23:29 2006 +0900 +++ b/xen/arch/ia64/xen/xen.lds.S Fri Oct 06 16:57:10 2006 +0900 @@ -172,6 +172,9 @@ SECTIONS . = ALIGN(PAGE_SIZE); /* make sure the gate page doesn't expose * kernel data */ + + .data.read_mostly : AT(ADDR(.data.read_mostly) - LOAD_OFFSET) + { *(.data.read_mostly) } .data.cacheline_aligned : AT(ADDR(.data.cacheline_aligned) - LOAD_OFFSET) { *(.data.cacheline_aligned) } diff -r 6b2ab43116db -r 5e54b8eb76f4 xen/include/asm-ia64/linux-xen/asm/cache.h --- a/xen/include/asm-ia64/linux-xen/asm/cache.h Fri Oct 06 17:23:29 2006 +0900 +++ b/xen/include/asm-ia64/linux-xen/asm/cache.h Fri Oct 06 16:57:10 2006 +0900 @@ -32,6 +32,6 @@ #endif #endif -#define __read_mostly +#define __read_mostly __attribute__((__section__(".data.read_mostly"))) #endif /* _ASM_IA64_CACHE_H */