diff options
author | Olof Johansson <olof@lixom.net> | 2017-11-29 20:55:15 -0500 |
---|---|---|
committer | Palmer Dabbelt <palmer@sifive.com> | 2017-11-30 13:01:10 -0500 |
commit | 83e7b8769a08987f47117f3a065de153c839a0a8 (patch) | |
tree | 77572dca79811be32baf6662edd9654fe766f28f | |
parent | fe2726af9fdc93ecf2469b7c512fc1a8936e128c (diff) |
RISC-V: move empty_zero_page definition to C and export it
Needed by some modules (exported by other architectures).
Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
-rw-r--r-- | arch/riscv/kernel/head.S | 3 | ||||
-rw-r--r-- | arch/riscv/kernel/setup.c | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/arch/riscv/kernel/head.S b/arch/riscv/kernel/head.S index 76af908f87c1..78f670d70133 100644 --- a/arch/riscv/kernel/head.S +++ b/arch/riscv/kernel/head.S | |||
@@ -152,6 +152,3 @@ END(_start) | |||
152 | __PAGE_ALIGNED_BSS | 152 | __PAGE_ALIGNED_BSS |
153 | /* Empty zero page */ | 153 | /* Empty zero page */ |
154 | .balign PAGE_SIZE | 154 | .balign PAGE_SIZE |
155 | ENTRY(empty_zero_page) | ||
156 | .fill (empty_zero_page + PAGE_SIZE) - ., 1, 0x00 | ||
157 | END(empty_zero_page) | ||
diff --git a/arch/riscv/kernel/setup.c b/arch/riscv/kernel/setup.c index de7db114c315..4375375ad168 100644 --- a/arch/riscv/kernel/setup.c +++ b/arch/riscv/kernel/setup.c | |||
@@ -60,6 +60,9 @@ static char __initdata builtin_cmdline[COMMAND_LINE_SIZE] = CONFIG_CMDLINE; | |||
60 | unsigned long va_pa_offset; | 60 | unsigned long va_pa_offset; |
61 | unsigned long pfn_base; | 61 | unsigned long pfn_base; |
62 | 62 | ||
63 | unsigned long empty_zero_page[PAGE_SIZE / sizeof(unsigned long)] __page_aligned_bss; | ||
64 | EXPORT_SYMBOL(empty_zero_page); | ||
65 | |||
63 | /* The lucky hart to first increment this variable will boot the other cores */ | 66 | /* The lucky hart to first increment this variable will boot the other cores */ |
64 | atomic_t hart_lottery; | 67 | atomic_t hart_lottery; |
65 | 68 | ||