Skip to content

Commit df93878

Browse files
committed
unicore32 ldscript fix: add cacheline parameter to PERCPU() macro
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>
1 parent 0ce790e commit df93878

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎arch/unicore32/kernel/vmlinux.lds.S‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include <asm/thread_info.h>
1515
#include <asm/memory.h>
1616
#include <asm/page.h>
17+
#include <asm/cache.h>
1718

1819
OUTPUT_ARCH(unicore32)
1920
ENTRY(stext)
@@ -29,7 +30,7 @@ SECTIONS
2930
HEAD_TEXT_SECTION
3031
INIT_TEXT_SECTION(PAGE_SIZE)
3132
INIT_DATA_SECTION(16)
32-
PERCPU(PAGE_SIZE)
33+
PERCPU(L1_CACHE_BYTES, PAGE_SIZE)
3334
__init_end = .;
3435

3536
_stext = .;
@@ -45,10 +46,10 @@ SECTIONS
4546

4647
_sdata = .;
4748
RO_DATA_SECTION(PAGE_SIZE)
48-
RW_DATA_SECTION(32, PAGE_SIZE, THREAD_SIZE)
49+
RW_DATA_SECTION(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE)
4950
_edata = .;
5051

51-
EXCEPTION_TABLE(32)
52+
EXCEPTION_TABLE(L1_CACHE_BYTES)
5253
NOTES
5354

5455
BSS_SECTION(0, 0, 0)

0 commit comments

Comments
 (0)