diff --git a/src/structures/paging/page_table.rs b/src/structures/paging/page_table.rs index 8605d28a5..fb7b785ed 100644 --- a/src/structures/paging/page_table.rs +++ b/src/structures/paging/page_table.rs @@ -188,8 +188,9 @@ impl PageTable { #[cfg(feature = "const_fn")] #[inline] pub const fn new() -> Self { + const EMPTY: PageTableEntry = PageTableEntry::new(); PageTable { - entries: [PageTableEntry::new(); ENTRY_COUNT], + entries: [EMPTY; ENTRY_COUNT], } }