]> git.baikalelectronics.ru Git - kernel.git/commitdiff
RISC-V: move empty_zero_page definition to C and export it
authorOlof Johansson <olof@lixom.net>
Thu, 30 Nov 2017 01:55:15 +0000 (17:55 -0800)
committerPalmer Dabbelt <palmer@sifive.com>
Thu, 30 Nov 2017 18:01:10 +0000 (10:01 -0800)
Needed by some modules (exported by other architectures).

Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
arch/riscv/kernel/head.S
arch/riscv/kernel/setup.c

index 76af908f87c18b76502c71d31ed12925790ce816..78f670d701339055c11c8cbeef409f9edf08ba3a 100644 (file)
@@ -152,6 +152,3 @@ END(_start)
 __PAGE_ALIGNED_BSS
        /* Empty zero page */
        .balign PAGE_SIZE
-ENTRY(empty_zero_page)
-       .fill (empty_zero_page + PAGE_SIZE) - ., 1, 0x00
-END(empty_zero_page)
index de7db114c31531ba244cb45c765b3fb2e1c559eb..4375375ad168a5aa50f652415160e90cf3eb9ffb 100644 (file)
@@ -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;