diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2016-01-31 21:46:24 +0000 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2016-01-31 21:46:24 +0000 |
commit | b2c43980fbc2211b2abc8ae78c5c1c92d3b9394f (patch) | |
tree | d41e6288f30544fe0b1745abdd33d04565eceeab /emulators/gxemul/files/patch-src_devices_dev__wdc.cc | |
parent | - Switch to options helpers (diff) |
- Switch to options helpers
- Regenerate patches with `make makepatch`
Diffstat (limited to 'emulators/gxemul/files/patch-src_devices_dev__wdc.cc')
-rw-r--r-- | emulators/gxemul/files/patch-src_devices_dev__wdc.cc | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/emulators/gxemul/files/patch-src_devices_dev__wdc.cc b/emulators/gxemul/files/patch-src_devices_dev__wdc.cc new file mode 100644 index 000000000000..fc921947292f --- /dev/null +++ b/emulators/gxemul/files/patch-src_devices_dev__wdc.cc @@ -0,0 +1,32 @@ +--- src/devices/dev_wdc.cc.orig 2014-08-17 08:45:12 UTC ++++ src/devices/dev_wdc.cc +@@ -274,12 +274,12 @@ void wdc__read(struct cpu *cpu, struct w + + (int64_t)d->head * d->sectors_per_track[d->drive] + + (int64_t)d->heads[d->drive] * d->sectors_per_track[d->drive] * cyl); + +-#if 0 ++#if 1 + /* LBA: */ + if (d->lba) + offset = 512 * (((d->head & 0xf) << 24) + (cyl << 8) + + d->sector); +- printf("WDC read from offset %lli\n", (long long)offset); ++ debug("WDC read from offset %lli\n", (long long)offset); + #endif + + while (count > 0) { +@@ -320,12 +320,12 @@ void wdc__write(struct cpu *cpu, struct + uint64_t offset = 512 * (d->sector - 1 + + (int64_t)d->head * d->sectors_per_track[d->drive] + + (int64_t)d->heads[d->drive] * d->sectors_per_track[d->drive] * cyl); +-#if 0 ++#if 1 + /* LBA: */ + if (d->lba) + offset = 512 * (((d->head & 0xf) << 24) + + (cyl << 8) + d->sector); +- printf("WDC write to offset %lli\n", (long long)offset); ++ debug("WDC write to offset %lli\n", (long long)offset); + #endif + + d->write_in_progress = d->cur_command; |