Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F106938825
D28496.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D28496.diff
View Options
diff --git a/stand/efi/loader/bootinfo.c b/stand/efi/loader/bootinfo.c
--- a/stand/efi/loader/bootinfo.c
+++ b/stand/efi/loader/bootinfo.c
@@ -439,7 +439,7 @@
struct devdesc *rootdev;
struct file_metadata *md;
vm_offset_t addr;
- uint64_t kernend;
+ uint64_t kernend, module;
uint64_t envp;
vm_offset_t size;
char *rootdevname;
@@ -518,6 +518,10 @@
if (kfp == NULL)
panic("can't find kernel file");
kernend = 0; /* fill it in later */
+
+ /* Figure out the size and location of the metadata. */
+ module = *modulep = addr;
+
file_addmetadata(kfp, MODINFOMD_HOWTO, sizeof(howto), &howto);
file_addmetadata(kfp, MODINFOMD_ENVP, sizeof(envp), &envp);
#if defined(LOADER_FDT_SUPPORT)
@@ -528,14 +532,13 @@
"device tree blob found!\n");
#endif
file_addmetadata(kfp, MODINFOMD_KERNEND, sizeof(kernend), &kernend);
+ file_addmetadata(kfp, MODINFOMD_MODULEP, sizeof(module), &module);
file_addmetadata(kfp, MODINFOMD_FW_HANDLE, sizeof(ST), &ST);
#ifdef LOADER_GELI_SUPPORT
geli_export_key_metadata(kfp);
#endif
bi_load_efi_data(kfp, exit_bs);
- /* Figure out the size and location of the metadata. */
- *modulep = addr;
size = bi_copymodules(0);
kernend = roundup(addr + size, PAGE_SIZE);
*kernendp = kernend;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jan 8, 6:44 PM (2 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15725381
Default Alt Text
D28496.diff (1 KB)
Attached To
Mode
D28496: stand/efi: add modulep to kernel metadata
Attached
Detach File
Event Timeline
Log In to Comment