aboutsummaryrefslogtreecommitdiff
path: root/hw/sun4m.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2010-08-03 21:00:58 +0000
committerBlue Swirl <blauwirbel@gmail.com>2010-08-03 21:00:58 +0000
commit748a4ee311b8353292e85851034cb917906aac14 (patch)
tree9570a5c02360a3754f35087ea0da30a0d28a198c /hw/sun4m.c
parent5933e8a96ab9c59cb6b6c80c9db385364a68c959 (diff)
sparc32: use FW_CFG_CMDLINE_SIZE
Add support for getting kernel command line size with FW_CFG_CMDLINE_SIZE. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/sun4m.c')
-rw-r--r--hw/sun4m.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/sun4m.c b/hw/sun4m.c
index e7a4cf6c92..a1373d4072 100644
--- a/hw/sun4m.c
+++ b/hw/sun4m.c
@@ -978,8 +978,11 @@ static void sun4m_hw_init(const struct sun4m_hwdef *hwdef, ram_addr_t RAM_size,
fw_cfg_add_bytes(fw_cfg, FW_CFG_CMDLINE_DATA,
(uint8_t*)strdup(kernel_cmdline),
strlen(kernel_cmdline) + 1);
+ fw_cfg_add_i32(fw_cfg, FW_CFG_CMDLINE_SIZE,
+ strlen(kernel_cmdline) + 1);
} else {
fw_cfg_add_i32(fw_cfg, FW_CFG_KERNEL_CMDLINE, 0);
+ fw_cfg_add_i32(fw_cfg, FW_CFG_CMDLINE_SIZE, 0);
}
fw_cfg_add_i32(fw_cfg, FW_CFG_INITRD_ADDR, INITRD_LOAD_ADDR);
fw_cfg_add_i32(fw_cfg, FW_CFG_INITRD_SIZE, 0); // not used