diff options
author | Laurent Vivier <laurent@vivier.eu> | 2009-08-08 10:19:24 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2009-08-08 10:19:24 +0000 |
commit | 7f1aec5f93382eef75920899f4065613aeaf02a2 (patch) | |
tree | a21ade7302c716bd5f7de7a21b05580ac87ea355 /hw/ppc_oldworld.c | |
parent | 8194f35a0c71a3bf169459bf715bea53b7bbc904 (diff) |
ppc_oldworld: configure screen size from qemu command line options
This patch uses the FW_CFG interface to send user requested screen size
and depth to openbios.
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/ppc_oldworld.c')
-rw-r--r-- | hw/ppc_oldworld.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/ppc_oldworld.c b/hw/ppc_oldworld.c index 06e014195e..549ba0cde7 100644 --- a/hw/ppc_oldworld.c +++ b/hw/ppc_oldworld.c @@ -381,6 +381,11 @@ static void ppc_heathrow_init (ram_addr_t ram_size, fw_cfg_add_i32(fw_cfg, FW_CFG_INITRD_ADDR, initrd_base); fw_cfg_add_i32(fw_cfg, FW_CFG_INITRD_SIZE, initrd_size); fw_cfg_add_i16(fw_cfg, FW_CFG_BOOT_DEVICE, ppc_boot_device); + + fw_cfg_add_i16(fw_cfg, FW_CFG_PPC_WIDTH, graphic_width); + fw_cfg_add_i16(fw_cfg, FW_CFG_PPC_HEIGHT, graphic_height); + fw_cfg_add_i16(fw_cfg, FW_CFG_PPC_DEPTH, graphic_depth); + qemu_register_boot_set(fw_cfg_boot_set, fw_cfg); } |