lx_emul(x86): fill zero page with zeroes

Ref #4397
This commit is contained in:
Stefan Kalkowski 2022-03-07 15:30:10 +01:00
parent 13c4abf4ad
commit 35cf8aada4

View File

@ -30,4 +30,12 @@ void time_init(void)
}
void lx_emul_setup_arch(void *dtb) { }
#include <asm/pgtable.h>
unsigned long empty_zero_page[PAGE_SIZE / sizeof(unsigned long)];
void lx_emul_setup_arch(void *dtb)
{
/* fill zero page */
memset(empty_zero_page, 0, PAGE_SIZE);
}