Kernel: Unbreak x86_64 build (PageDirectory)

This commit is contained in:
Andreas Kling 2021-09-05 15:38:57 +02:00
commit 4b7575fabd
Notes: sideshowbarker 2024-07-18 04:42:57 +09:00

View file

@ -63,7 +63,7 @@ KResultOr<NonnullRefPtr<PageDirectory>> PageDirectory::try_create_for_userspace(
#if ARCH(X86_64)
directory->m_pml4t = MM.allocate_user_physical_page();
if (!directory->m_pml4t)
return {};
return ENOMEM;
#endif
directory->m_directory_table = MM.allocate_user_physical_page();