Move args structure allocation to a function in memory.cpp

This commit is contained in:
Justin C. Miller
2020-02-24 02:18:14 -08:00
parent 36b3ad8154
commit 1a223d6ef5
3 changed files with 38 additions and 27 deletions

View File

@@ -2,6 +2,7 @@
#include <uefi/boot_services.h>
#include <uefi/runtime_services.h>
#include <stdint.h>
#include "kernel_args.h"
namespace boot {
namespace memory {
@@ -9,6 +10,8 @@ namespace memory {
void init_pointer_fixup(uefi::boot_services *bs, uefi::runtime_services *rs);
void mark_pointer_fixup(void **p);
kernel::args::header * allocate_args_structure(uefi::boot_services *bs, size_t max_modules);
/*
extern const EFI_MEMORY_TYPE memtype_kernel;
extern const EFI_MEMORY_TYPE memtype_data;