summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bhyve
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2015-04-20 19:11:27 +0000
committermav <mav@FreeBSD.org>2015-04-20 19:11:27 +0000
commit28d6acc0501be663f266d3d324ff07375ee88702 (patch)
tree9bd0552f138e0a36205bd7e9bce7c766849c7cf4 /usr.sbin/bhyve
parent965a14212a80edef606cb0345539a3c5d0e61614 (diff)
downloadFreeBSD-src-28d6acc0501be663f266d3d324ff07375ee88702.zip
FreeBSD-src-28d6acc0501be663f266d3d324ff07375ee88702.tar.gz
Don't set bits that should be zero for SATA devices.
Old value made Linux think that it is PATA device with SATA bridge. MFC after: 2 weeks
Diffstat (limited to 'usr.sbin/bhyve')
-rw-r--r--usr.sbin/bhyve/pci_ahci.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/usr.sbin/bhyve/pci_ahci.c b/usr.sbin/bhyve/pci_ahci.c
index 95cfdd9..12540a1 100644
--- a/usr.sbin/bhyve/pci_ahci.c
+++ b/usr.sbin/bhyve/pci_ahci.c
@@ -930,7 +930,6 @@ handle_identify(struct ahci_port *p, int slot, uint8_t *cfis)
buf[88] = 0x7f;
if (p->xfermode & ATA_UDMA0)
buf[88] |= (1 << ((p->xfermode & 7) + 8));
- buf[93] = (1 | 1 <<14);
buf[100] = sectors;
buf[101] = (sectors >> 16);
buf[102] = (sectors >> 32);
OpenPOWER on IntegriCloud