[all] Rename kernel::args to kernel::init

The kernel::args namespace is really the protocol for initializing the
kernel from the bootloader. Also, the header struct in that namespace
isn't actually a header, but a collection of parameters. This change
renames the namespace to kernel::init and the struct to args.
This commit is contained in:
Justin C. Miller
2021-05-28 12:34:46 -07:00
parent 82333ceb82
commit 910fde3b2c
16 changed files with 117 additions and 108 deletions

View File

@@ -186,7 +186,7 @@ add_current_mappings(page_table *new_pml4)
}
void
allocate_tables(kernel::args::header *args, uefi::boot_services *bs)
allocate_tables(kernel::init::args *args, uefi::boot_services *bs)
{
status_line status(L"Allocating initial page tables");
@@ -233,7 +233,7 @@ constexpr bool has_flag(E set, E flag) {
void
map_pages(
kernel::args::header *args,
kernel::init::args *args,
uintptr_t phys, uintptr_t virt,
size_t count, bool write_flag, bool exe_flag)
{
@@ -266,10 +266,10 @@ map_pages(
void
map_section(
kernel::args::header *args,
const kernel::args::program_section &section)
kernel::init::args *args,
const kernel::init::program_section &section)
{
using kernel::args::section_flags;
using kernel::init::section_flags;
size_t pages = memory::bytes_to_pages(section.size);