The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=6f6213ec90e1b5c488cde38f86b4eef09c70c00c
commit 6f6213ec90e1b5c488cde38f86b4eef09c70c00c Author: VexedUXR <58701572+vexed...@users.noreply.github.com> AuthorDate: 2023-06-12 14:57:02 +0000 Commit: Warner Losh <i...@freebsd.org> CommitDate: 2023-06-12 14:57:20 +0000 Add comments for memory size Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/753 --- stand/efi/loader/arch/amd64/elf64_freebsd.c | 2 +- stand/kboot/arch/amd64/elf64_freebsd.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stand/efi/loader/arch/amd64/elf64_freebsd.c b/stand/efi/loader/arch/amd64/elf64_freebsd.c index 290d1c4696da..0ed9d2d78ffd 100644 --- a/stand/efi/loader/arch/amd64/elf64_freebsd.c +++ b/stand/efi/loader/arch/amd64/elf64_freebsd.c @@ -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)) { diff --git a/stand/kboot/arch/amd64/elf64_freebsd.c b/stand/kboot/arch/amd64/elf64_freebsd.c index c3ed842a2abd..c25a22f504f8 100644 --- a/stand/kboot/arch/amd64/elf64_freebsd.c +++ b/stand/kboot/arch/amd64/elf64_freebsd.c @@ -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)) {