[kernel] Re-enable most of kernel_main

The `kernel_main()` had a lot change out from under it with the
bootloader changes. This change brings most of it back in line with the
new kernel arguments.

Tags: pml4 paging boot
This commit is contained in:
Justin C. Miller
2020-05-24 17:58:45 -07:00
parent 35b1d37df0
commit bfd13e7a9b
4 changed files with 35 additions and 32 deletions

View File

@@ -20,7 +20,8 @@ class page_manager
public:
/// Constructor.
/// \arg frames The frame allocator to get physical frames from
page_manager(frame_allocator &frames);
/// \arg pml4 The initial kernel-space pml4
page_manager(frame_allocator &frames, page_table *pml4);
/// Helper to get the number of pages needed for a given number of bytes.
/// \arg bytes The number of bytes desired