From 4869349d574bef2b9758eae4e2b555d6e1fd0960 Mon Sep 17 00:00:00 2001 From: Martin Stein Date: Thu, 19 May 2022 09:32:05 +0200 Subject: [PATCH] lx_emul & x86: no unnecessary memset of zero page Ref #4397 --- repos/dde_linux/src/lib/lx_emul/spec/x86/start.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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) { }