diff options
author | Jes Sorensen <Jes.Sorensen@redhat.com> | 2010-06-11 16:02:34 +0200 |
---|---|---|
committer | Doug Goldstein <cardoe@gentoo.org> | 2010-07-20 17:36:33 -0500 |
commit | c4ffbe47685fd7618d123713cc6d1db1fc5975c4 (patch) | |
tree | 936df067426aa3a4121f572a7b1916bdeb88474e | |
parent | qcow2: Fix corruption after error in update_refcount (diff) | |
download | qemu-kvm-c4ffbe47685fd7618d123713cc6d1db1fc5975c4.tar.gz qemu-kvm-c4ffbe47685fd7618d123713cc6d1db1fc5975c4.tar.bz2 qemu-kvm-c4ffbe47685fd7618d123713cc6d1db1fc5975c4.zip |
Correct definitions for FD_CMD_SAVE and FD_CMD_RESTORE
Correct definitions for FD_CMD_SAVE and FD_CMD_RESTORE in hw/fdc.c
Per https://bugs.launchpad.net/qemu/+bug/424453 the correct values
for FD_CMD_SAVE is 0x2e and FD_CMD_RESTORE is 0x4e. Verified against
the Intel 82078 manual which can be found at:
http://wiki.qemu.org/Documentation/HardwareManuals page 22.
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
(cherry picked from commit bb350a5e9b961a8c3940b3451c329ff07c027aa1)
-rw-r--r-- | hw/fdc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -370,9 +370,9 @@ enum { FD_CMD_PART_ID = 0x18, FD_CMD_SCAN_LOW_OR_EQUAL = 0x19, FD_CMD_SCAN_HIGH_OR_EQUAL = 0x1d, - FD_CMD_SAVE = 0x2c, + FD_CMD_SAVE = 0x2e, FD_CMD_OPTION = 0x33, - FD_CMD_RESTORE = 0x4c, + FD_CMD_RESTORE = 0x4e, FD_CMD_DRIVE_SPECIFICATION_COMMAND = 0x8e, FD_CMD_RELATIVE_SEEK_OUT = 0x8f, FD_CMD_FORMAT_AND_WRITE = 0xcd, |