socsvn commit: r254752 - soc2013/zcore/head/usr.sbin/bhyve

zcore at FreeBSD.org zcore at FreeBSD.org
Sat Jul 13 12:55:38 UTC 2013


Author: zcore
Date: Sat Jul 13 12:55:37 2013
New Revision: 254752
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=254752

Log:
  use BAR(5)

Modified:
  soc2013/zcore/head/usr.sbin/bhyve/pci_ahci.c

Modified: soc2013/zcore/head/usr.sbin/bhyve/pci_ahci.c
==============================================================================
--- soc2013/zcore/head/usr.sbin/bhyve/pci_ahci.c	Sat Jul 13 11:19:21 2013	(r254751)
+++ soc2013/zcore/head/usr.sbin/bhyve/pci_ahci.c	Sat Jul 13 12:55:37 2013	(r254752)
@@ -130,7 +130,7 @@
 
 	pci_emul_add_msicap(pi, 1);
 	
-	pci_emul_alloc_bar(pi, 0, PCIBAR_IO, AHCI_REGSZ);
+	pci_emul_alloc_bar(pi, 5, PCIBAR_IO, AHCI_REGSZ);
 
 	return (0);
 }
@@ -140,7 +140,7 @@
 		int baridx, uint64_t offset, int size, uint64_t value)
 {
 
-	assert(baridx == 0);
+	assert(baridx == 5);
 
 	switch (offset) {
 	default:
@@ -156,7 +156,7 @@
 {
 	uint32_t value;
 
-	assert(baridx == 0);
+	assert(baridx == 5);
 
 	switch (offset) {
 	case AHCI_CAP:


More information about the svn-soc-all mailing list