mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 00:14:32 -08:00
[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:
@@ -181,6 +181,7 @@ page_table::get_table_page()
|
||||
s_page_cache = s_page_cache->next;
|
||||
--s_cache_count;
|
||||
|
||||
kutil::memset(page, 0, memory::frame_size);
|
||||
return reinterpret_cast<page_table*>(page);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user