Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107685729
D38254.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
679 B
Referenced Files
None
Subscribers
None
D38254.diff
View Options
diff --git a/stand/kboot/arch/amd64/load_addr.c b/stand/kboot/arch/amd64/load_addr.c
--- a/stand/kboot/arch/amd64/load_addr.c
+++ b/stand/kboot/arch/amd64/load_addr.c
@@ -160,3 +160,22 @@
}
return (base_seg);
}
+
+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]);
+}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jan 18, 1:58 PM (18 h, 56 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15863728
Default Alt Text
D38254.diff (679 B)
Attached To
Mode
D38254: kboot: bi_loadsmap for amd64
Attached
Detach File
Event Timeline
Log In to Comment