Add comments for memory size

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/753
This commit is contained in:
VexedUXR 2023-06-12 08:57:02 -06:00 committed by Warner Losh
parent 6016aedba1
commit 6f6213ec90
2 changed files with 2 additions and 2 deletions

View File

@ -169,7 +169,7 @@ elf64_exec(struct preloaded_file *fp)
trampoline = (void *)trampcode;
if (copy_staging == COPY_STAGING_ENABLE) {
PT4 = (pml4_entry_t *)0x0000000040000000;
PT4 = (pml4_entry_t *)0x0000000040000000; /* 1G */
err = BS->AllocatePages(AllocateMaxAddress, EfiLoaderData, 3,
(EFI_PHYSICAL_ADDRESS *)&PT4);
if (EFI_ERROR(err)) {

View File

@ -238,7 +238,7 @@ elf64_exec(struct preloaded_file *fp)
#ifdef EFI
if (copy_staging == COPY_STAGING_ENABLE) {
PT4 = (pml4_entry_t *)0x0000000040000000;
PT4 = (pml4_entry_t *)0x0000000040000000; /* 1G */
err = BS->AllocatePages(AllocateMaxAddress, EfiLoaderData, 3,
(EFI_PHYSICAL_ADDRESS *)&PT4);
if (EFI_ERROR(err)) {