From 6bb4ca57a15ab9458ce8821572def6758131d8b9 Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Sun, 27 Dec 2009 18:25:49 +0000 Subject: sparc: make command line available also via firmware configuration device Signed-off-by: Blue Swirl --- hw/sun4u.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'hw/sun4u.c') diff --git a/hw/sun4u.c b/hw/sun4u.c index a7a227b..5cd67ee 100644 --- a/hw/sun4u.c +++ b/hw/sun4u.c @@ -652,6 +652,9 @@ static void sun4uv_init(ram_addr_t RAM_size, if (kernel_cmdline) { fw_cfg_add_i32(fw_cfg, FW_CFG_KERNEL_CMDLINE, CMDLINE_ADDR); pstrcpy_targphys("cmdline", CMDLINE_ADDR, TARGET_PAGE_SIZE, kernel_cmdline); + fw_cfg_add_bytes(fw_cfg, FW_CFG_CMDLINE_DATA, + (uint8_t*)strdup(kernel_cmdline), + strlen(kernel_cmdline) + 1); } else { fw_cfg_add_i32(fw_cfg, FW_CFG_KERNEL_CMDLINE, 0); } -- cgit v1.1