Fix only allocating one page for log

This commit is contained in:
Justin C. Miller
2018-04-11 10:14:13 -07:00
parent 2d52f64eb6
commit 7f805fae1a
4 changed files with 5 additions and 3 deletions

View File

@@ -144,7 +144,7 @@ loader_load_kernel(
CHECK_EFI_STATUS_OR_RETURN(status, L"loader_alloc_pages: kernel data");
data->log = next;
data->log_length = KERNEL_LOG_PAGES;
data->log_length = KERNEL_LOG_PAGES * PAGE_SIZE;
status = loader_alloc_pages(
bootsvc,
KERNEL_LOG_MEMTYPE,