* [PATCH] unicore32 ldscript fix: add cacheline parameter to PERCPU() macro
@ 2011-03-30 8:52 Guan Xuetao
2011-03-30 9:31 ` Arnd Bergmann
0 siblings, 1 reply; 3+ messages in thread
From: Guan Xuetao @ 2011-03-30 8:52 UTC (permalink / raw)
To: Arnd Bergmann, Tejun Heo; +Cc: linux-kernel, linux-arch
Also, adjust cacheline parameter of RW_DATA_SECTION and EXCEPTION_TABLE
Signed-off-by: Guan Xuetao <gxt@mprc.pku.edu.cn>
---
arch/unicore32/kernel/vmlinux.lds.S | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/arch/unicore32/kernel/vmlinux.lds.S b/arch/unicore32/kernel/vmlinux.lds.S
index 0b4eb89..9bf7f7a 100644
--- a/arch/unicore32/kernel/vmlinux.lds.S
+++ b/arch/unicore32/kernel/vmlinux.lds.S
@@ -14,6 +14,7 @@
#include <asm/thread_info.h>
#include <asm/memory.h>
#include <asm/page.h>
+#include <asm/cache.h>
OUTPUT_ARCH(unicore32)
ENTRY(stext)
@@ -29,7 +30,7 @@ SECTIONS
HEAD_TEXT_SECTION
INIT_TEXT_SECTION(PAGE_SIZE)
INIT_DATA_SECTION(16)
- PERCPU(PAGE_SIZE)
+ PERCPU(L1_CACHE_BYTES, PAGE_SIZE)
__init_end = .;
_stext = .;
@@ -45,10 +46,10 @@ SECTIONS
_sdata = .;
RO_DATA_SECTION(PAGE_SIZE)
- RW_DATA_SECTION(32, PAGE_SIZE, THREAD_SIZE)
+ RW_DATA_SECTION(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE)
_edata = .;
- EXCEPTION_TABLE(32)
+ EXCEPTION_TABLE(L1_CACHE_BYTES)
NOTES
BSS_SECTION(0, 0, 0)
--
1.6.2.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] unicore32 ldscript fix: add cacheline parameter to PERCPU() macro
2011-03-30 8:52 [PATCH] unicore32 ldscript fix: add cacheline parameter to PERCPU() macro Guan Xuetao
@ 2011-03-30 9:31 ` Arnd Bergmann
2011-03-30 9:31 ` Arnd Bergmann
0 siblings, 1 reply; 3+ messages in thread
From: Arnd Bergmann @ 2011-03-30 9:31 UTC (permalink / raw)
To: Guan Xuetao; +Cc: Tejun Heo, linux-kernel, linux-arch
On Wednesday 30 March 2011, Guan Xuetao wrote:
>
> Also, adjust cacheline parameter of RW_DATA_SECTION and EXCEPTION_TABLE
>
> Signed-off-by: Guan Xuetao <gxt@mprc.pku.edu.cn>
Acked-by: Arnd Bergmann <arnd@arndb.de>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] unicore32 ldscript fix: add cacheline parameter to PERCPU() macro
2011-03-30 9:31 ` Arnd Bergmann
@ 2011-03-30 9:31 ` Arnd Bergmann
0 siblings, 0 replies; 3+ messages in thread
From: Arnd Bergmann @ 2011-03-30 9:31 UTC (permalink / raw)
To: Guan Xuetao; +Cc: Tejun Heo, linux-kernel, linux-arch
On Wednesday 30 March 2011, Guan Xuetao wrote:
>
> Also, adjust cacheline parameter of RW_DATA_SECTION and EXCEPTION_TABLE
>
> Signed-off-by: Guan Xuetao <gxt@mprc.pku.edu.cn>
Acked-by: Arnd Bergmann <arnd@arndb.de>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-03-30 9:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-30 8:52 [PATCH] unicore32 ldscript fix: add cacheline parameter to PERCPU() macro Guan Xuetao
2011-03-30 9:31 ` Arnd Bergmann
2011-03-30 9:31 ` Arnd Bergmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox