]> git.proxmox.com Git - mirror_qemu.git/commit - hw/i386/pc.c
pc: Factor common code out of pc_boot_set() and cmos_init()
authorMarkus Armbruster <armbru@redhat.com>
Wed, 17 Feb 2010 17:07:48 +0000 (18:07 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 16 Mar 2010 15:55:05 +0000 (16:55 +0100)
commitd9346e81de83a99ac20d94d6598ae927895cb9ef
treeeadd1088a094b82ef3d901a83efb1e407ca164d5
parent8ad00f84251c7aefca26461faccfbb557e1dba47
pc: Factor common code out of pc_boot_set() and cmos_init()

Code duplicated in commit 0ecdffbb.  The two versions are similar, but
not identical:

* cmos_init() reports errors to stderr, pc_boot_set() via
  qemu_error().  The latter is fine for both, so pick that for the
  common code.

* cmos_init() obeys fd_bootchk, pc_boot_set() ignores it.  Make it a
  parameter of the common code.
hw/pc.c