Commit 83e7b876 authored by Olof Johansson's avatar Olof Johansson Committed by Palmer Dabbelt
Browse files

RISC-V: move empty_zero_page definition to C and export it

Needed by some modules (exported by other architectures).

Signed-off-by: default avatarOlof Johansson <>
Signed-off-by: default avatarPalmer Dabbelt <>
parent fe2726af
......@@ -152,6 +152,3 @@ END(_start)
/* Empty zero page */
.balign PAGE_SIZE
.fill (empty_zero_page + PAGE_SIZE) - ., 1, 0x00
......@@ -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;
/* The lucky hart to first increment this variable will boot the other cores */
atomic_t hart_lottery;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment