mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-29 01:51:39 +00:00
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>
This commit is contained in:
parent
0ce790e7d7
commit
df93878c96
1 changed files with 4 additions and 3 deletions
|
@ -14,6 +14,7 @@
|
||||||
#include <asm/thread_info.h>
|
#include <asm/thread_info.h>
|
||||||
#include <asm/memory.h>
|
#include <asm/memory.h>
|
||||||
#include <asm/page.h>
|
#include <asm/page.h>
|
||||||
|
#include <asm/cache.h>
|
||||||
|
|
||||||
OUTPUT_ARCH(unicore32)
|
OUTPUT_ARCH(unicore32)
|
||||||
ENTRY(stext)
|
ENTRY(stext)
|
||||||
|
@ -29,7 +30,7 @@ SECTIONS
|
||||||
HEAD_TEXT_SECTION
|
HEAD_TEXT_SECTION
|
||||||
INIT_TEXT_SECTION(PAGE_SIZE)
|
INIT_TEXT_SECTION(PAGE_SIZE)
|
||||||
INIT_DATA_SECTION(16)
|
INIT_DATA_SECTION(16)
|
||||||
PERCPU(PAGE_SIZE)
|
PERCPU(L1_CACHE_BYTES, PAGE_SIZE)
|
||||||
__init_end = .;
|
__init_end = .;
|
||||||
|
|
||||||
_stext = .;
|
_stext = .;
|
||||||
|
@ -45,10 +46,10 @@ SECTIONS
|
||||||
|
|
||||||
_sdata = .;
|
_sdata = .;
|
||||||
RO_DATA_SECTION(PAGE_SIZE)
|
RO_DATA_SECTION(PAGE_SIZE)
|
||||||
RW_DATA_SECTION(32, PAGE_SIZE, THREAD_SIZE)
|
RW_DATA_SECTION(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE)
|
||||||
_edata = .;
|
_edata = .;
|
||||||
|
|
||||||
EXCEPTION_TABLE(32)
|
EXCEPTION_TABLE(L1_CACHE_BYTES)
|
||||||
NOTES
|
NOTES
|
||||||
|
|
||||||
BSS_SECTION(0, 0, 0)
|
BSS_SECTION(0, 0, 0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue