Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102637292
D37766.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
963 B
Referenced Files
None
Subscribers
None
D37766.diff
View Options
diff --git a/stand/efi/boot1/boot1.c b/stand/efi/boot1/boot1.c
--- a/stand/efi/boot1/boot1.c
+++ b/stand/efi/boot1/boot1.c
@@ -168,7 +168,7 @@
RS = ST->RuntimeServices;
heapsize = 64 * 1024 * 1024;
- status = BS->AllocatePages(AllocateAnyPages, EfiLoaderData,
+ status = BS->AllocatePages(AllocateAnyPages, EfiLoaderCode,
EFI_SIZE_TO_PAGES(heapsize), &heap);
if (status != EFI_SUCCESS) {
ST->ConOut->OutputString(ST->ConOut,
diff --git a/stand/efi/loader/efi_main.c b/stand/efi/loader/efi_main.c
--- a/stand/efi/loader/efi_main.c
+++ b/stand/efi/loader/efi_main.c
@@ -97,7 +97,7 @@
EfiConsoleControlScreenText);
heapsize = 64 * 1024 * 1024;
- status = BS->AllocatePages(AllocateAnyPages, EfiLoaderData,
+ status = BS->AllocatePages(AllocateAnyPages, EfiLoaderCode,
EFI_SIZE_TO_PAGES(heapsize), &heap);
if (status != EFI_SUCCESS) {
ST->ConOut->OutputString(ST->ConOut, (CHAR16 *)L"Failed to allocate memory for heap.\r\n");
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 16, 4:06 AM (17 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14652925
Default Alt Text
D37766.diff (963 B)
Attached To
Mode
D37766: efi loader: allocate space for the kernel as code rather than data
Attached
Detach File
Event Timeline
Log In to Comment