diff --git a/repos/dde_linux/src/lib/lx_emul/spec/x86/start.c b/repos/dde_linux/src/lib/lx_emul/spec/x86/start.c index 01b29c2a95..1a854ebd57 100644 --- a/repos/dde_linux/src/lib/lx_emul/spec/x86/start.c +++ b/repos/dde_linux/src/lib/lx_emul/spec/x86/start.c @@ -32,11 +32,11 @@ void time_init(void) #include +/* + * Note that empty_zero_page lands in the BSS section and is therefore + * automatically zeroed at program startup. + */ unsigned long empty_zero_page[PAGE_SIZE / sizeof(unsigned long)] __attribute__((aligned(PAGE_SIZE))); -void lx_emul_setup_arch(void *dtb) -{ - /* fill zero page */ - memset(empty_zero_page, 0, PAGE_SIZE); -} +void lx_emul_setup_arch(void *dtb) { }