Page MenuHomeFreeBSD

D38254.diff
No OneTemporary

D38254.diff

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

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)

Event Timeline