Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147810376
D49867.1784434341.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
695 B
Referenced Files
None
Subscribers
None
D49867.1784434341.diff
View Options
diff --git a/stand/kboot/kboot/arch/amd64/load_addr.c b/stand/kboot/kboot/arch/amd64/load_addr.c
--- a/stand/kboot/kboot/arch/amd64/load_addr.c
+++ b/stand/kboot/kboot/arch/amd64/load_addr.c
@@ -68,18 +68,5 @@
void
bi_loadsmap(struct preloaded_file *kfp)
{
- struct bios_smap smap[32], *sm;
- struct memory_segments *s;
- int smapnum, len;
-
- for (smapnum = 0; smapnum < min(32, nr_seg); smapnum++) {
- sm = &smap[smapnum];
- s = &segs[smapnum];
- sm->base = s->start;
- sm->length = s->end - s->start + 1;
- sm->type = SMAP_TYPE_MEMORY;
- }
-
- len = smapnum * sizeof(struct bios_smap);
- file_addmetadata(kfp, MODINFOMD_SMAP, len, &smap[0]);
+ efi_bi_loadsmap(kfp);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jul 19, 4:12 AM (17 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29193289
Default Alt Text
D49867.1784434341.diff (695 B)
Attached To
Mode
D49867: kboot/amd64: Use efi_bi_loadsmap in bi_loadsmap
Attached
Detach File
Event Timeline
Log In to Comment