diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2010-08-03 21:00:58 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-08-03 21:00:58 +0000 |
commit | 748a4ee311b8353292e85851034cb917906aac14 (patch) | |
tree | 9570a5c02360a3754f35087ea0da30a0d28a198c /hw/sun4m.c | |
parent | 5933e8a96ab9c59cb6b6c80c9db385364a68c959 (diff) | |
download | hqemu-748a4ee311b8353292e85851034cb917906aac14.zip hqemu-748a4ee311b8353292e85851034cb917906aac14.tar.gz |
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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |