Add a command line string field to verified boot kernel config image.

Also some cleanup of duplicated code.

BUG=670
TEST=Existing image verification tests still pass.

Review URL: http://codereview.chromium.org/874006
This commit is contained in:
Gaurav Shah
2010-03-12 18:13:24 -08:00
parent 259de40640
commit 4f39386902
5 changed files with 24 additions and 36 deletions

View File

@@ -15,10 +15,13 @@
#define KERNEL_MAGIC "CHROMEOS"
#define KERNEL_MAGIC_SIZE 8
#define KERNEL_CMD_LINE_SIZE 4096
/* Kernel config file options according to the Chrome OS drive map design. */
typedef struct kconfig_options {
uint32_t version[2]; /* Configuration file version. */
uint8_t cmd_line[KERNEL_CMD_LINE_SIZE]; /* Kernel command line option string
* terminated by a NULL character. */
uint64_t kernel_len; /* Size of the kernel. */
uint64_t kernel_load_addr; /* Load address in memory for the kernel image */
uint64_t kernel_entry_addr; /* Address to jump to after kernel is loaded. */