[kenrel] Ensure page tables are zeroed before use

I forgot to zero out pages used for page tables, which didn't come back
to bite me until testing on physical hardware..
This commit is contained in:
Justin C. Miller
2021-01-17 10:35:19 -08:00
parent 45b52633bb
commit cfeeba4400

View File

@@ -181,6 +181,7 @@ page_table::get_table_page()
s_page_cache = s_page_cache->next; s_page_cache = s_page_cache->next;
--s_cache_count; --s_cache_count;
kutil::memset(page, 0, memory::frame_size);
return reinterpret_cast<page_table*>(page); return reinterpret_cast<page_table*>(page);
} }