mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-22 18:56:38 +00:00
Add comments for memory size
Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/753
This commit is contained in:
parent
6016aedba1
commit
6f6213ec90
|
@ -169,7 +169,7 @@ elf64_exec(struct preloaded_file *fp)
|
||||||
trampoline = (void *)trampcode;
|
trampoline = (void *)trampcode;
|
||||||
|
|
||||||
if (copy_staging == COPY_STAGING_ENABLE) {
|
if (copy_staging == COPY_STAGING_ENABLE) {
|
||||||
PT4 = (pml4_entry_t *)0x0000000040000000;
|
PT4 = (pml4_entry_t *)0x0000000040000000; /* 1G */
|
||||||
err = BS->AllocatePages(AllocateMaxAddress, EfiLoaderData, 3,
|
err = BS->AllocatePages(AllocateMaxAddress, EfiLoaderData, 3,
|
||||||
(EFI_PHYSICAL_ADDRESS *)&PT4);
|
(EFI_PHYSICAL_ADDRESS *)&PT4);
|
||||||
if (EFI_ERROR(err)) {
|
if (EFI_ERROR(err)) {
|
||||||
|
|
|
@ -238,7 +238,7 @@ elf64_exec(struct preloaded_file *fp)
|
||||||
|
|
||||||
#ifdef EFI
|
#ifdef EFI
|
||||||
if (copy_staging == COPY_STAGING_ENABLE) {
|
if (copy_staging == COPY_STAGING_ENABLE) {
|
||||||
PT4 = (pml4_entry_t *)0x0000000040000000;
|
PT4 = (pml4_entry_t *)0x0000000040000000; /* 1G */
|
||||||
err = BS->AllocatePages(AllocateMaxAddress, EfiLoaderData, 3,
|
err = BS->AllocatePages(AllocateMaxAddress, EfiLoaderData, 3,
|
||||||
(EFI_PHYSICAL_ADDRESS *)&PT4);
|
(EFI_PHYSICAL_ADDRESS *)&PT4);
|
||||||
if (EFI_ERROR(err)) {
|
if (EFI_ERROR(err)) {
|
||||||
|
|
Loading…
Reference in a new issue