Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(318)

Unified Diff: utility/vbutil_kernel.c

Issue 3176019: Add fake e820 memory map entries to zeropage (Closed) Base URL: ssh://gitrw.chromium.org/vboot_reference.git
Patch Set: Rewrite struct from scratch Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « utility/include/kernel_blob.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utility/vbutil_kernel.c
diff --git a/utility/vbutil_kernel.c b/utility/vbutil_kernel.c
index eeae96e13d1ea160c818ccd5e63380e14300c6f8..d2dce7c56ea576ddd80de8da8e514112f1b4b204 100644
--- a/utility/vbutil_kernel.c
+++ b/utility/vbutil_kernel.c
@@ -335,6 +335,14 @@ static blob_t *NewBlob(uint64_t version,
params->ramdisk_size = 0;
params->type_of_loader = 0xff;
params->cmd_line_ptr = cmdline_addr;
+ /* A fake e820 memory map with 2 entries */
+ params->n_e820_entry = 2;
+ params->e820_entries[0].start_addr = 0x00000000;
+ params->e820_entries[0].segment_size = 0x00001000;
+ params->e820_entries[0].segment_type = E820_TYPE_RAM;
+ params->e820_entries[1].start_addr = 0xfffff000;
+ params->e820_entries[1].segment_size = 0x00001000;
+ params->e820_entries[1].segment_type = E820_TYPE_RESERVED;
now += CROS_PARAMS_SIZE;
/* Finally, append the bootloader. Remember where it will load in
« no previous file with comments | « utility/include/kernel_blob.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698