Commit d4e337fe authored by Max Filippov's avatar Max Filippov

xtensa: don't clear swapper_pg_dir in paging_init

swapper_pg_dir is located in the .bss, so it's zero-initialized anyway.
With KASAN enabled paging_init will be called after KASAN
initialization, it must not erase page directory entries set up for
KASAN shadow map.
Signed-off-by: default avatarMax Filippov <jcmvbkbc@gmail.com>
parent c2edb35a
......@@ -56,7 +56,6 @@ static void __init fixedrange_init(void)
void __init paging_init(void)
{
memset(swapper_pg_dir, 0, PAGE_SIZE);
#ifdef CONFIG_HIGHMEM
fixedrange_init();
pkmap_page_table = init_pmd(PKMAP_BASE, LAST_PKMAP);
......
Markdown is supported
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