aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv/kernel/setup.c
diff options
context:
space:
mode:
authorOlof Johansson2017-11-29 17:55:15 -0800
committerPalmer Dabbelt2017-11-30 10:01:10 -0800
commit83e7b8769a08987f47117f3a065de153c839a0a8 (patch)
tree77572dca79811be32baf6662edd9654fe766f28f /arch/riscv/kernel/setup.c
parentfe2726af9fdc93ecf2469b7c512fc1a8936e128c (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>
Diffstat (limited to 'arch/riscv/kernel/setup.c')
-rw-r--r--arch/riscv/kernel/setup.c3
1 files changed, 3 insertions, 0 deletions
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;
unsigned long va_pa_offset;
unsigned long pfn_base;
+unsigned long empty_zero_page[PAGE_SIZE / sizeof(unsigned long)] __page_aligned_bss;
+EXPORT_SYMBOL(empty_zero_page);
+
/* The lucky hart to first increment this variable will boot the other cores */
atomic_t hart_lottery;