Module Name:    src
Committed By:   mrg
Date:           Sat Oct  1 21:51:53 UTC 2016

Modified Files:
        src/sys/arch/x86/pci: pchb.c

Log Message:
use 4-byte style accesses, should hopefully fix PR#37787.


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/sys/arch/x86/pci/pchb.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/x86/pci/pchb.c
diff -u src/sys/arch/x86/pci/pchb.c:1.34 src/sys/arch/x86/pci/pchb.c:1.35
--- src/sys/arch/x86/pci/pchb.c:1.34	Mon Apr 16 04:57:42 2012
+++ src/sys/arch/x86/pci/pchb.c	Sat Oct  1 21:51:52 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: pchb.c,v 1.34 2012/04/16 04:57:42 pgoyette Exp $ */
+/*	$NetBSD: pchb.c,v 1.35 2016/10/01 21:51:52 mrg Exp $ */
 
 /*-
  * Copyright (c) 1996, 1998, 2000 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pchb.c,v 1.34 2012/04/16 04:57:42 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pchb.c,v 1.35 2016/10/01 21:51:52 mrg Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -61,13 +61,13 @@ __KERNEL_RCSID(0, "$NetBSD: pchb.c,v 1.3
 #define	I82443BX_SDRAMC_REG	0x74 /* upper 16 bits */
 
 /* XXX should be in dev/ic/i82424{reg.var}.h */
-#define I82424_CPU_BCTL_REG		0x53
+#define I82424_CPU_BCTL_REG		0x50 /* upper 8 bits */
 #define I82424_PCI_BCTL_REG		0x54
 
-#define I82424_BCTL_CPUMEM_POSTEN	0x01
-#define I82424_BCTL_CPUPCI_POSTEN	0x02
-#define I82424_BCTL_PCIMEM_BURSTEN	0x01
-#define I82424_BCTL_PCI_BURSTEN		0x02
+#define I82424_BCTL_CPUMEM_POSTEN	0x01000000
+#define I82424_BCTL_CPUPCI_POSTEN	0x02000000
+#define I82424_BCTL_PCIMEM_BURSTEN	0x01000000
+#define I82424_BCTL_PCI_BURSTEN		0x02000000
 
 static int	pchbmatch(device_t, cfdata_t, void *);
 static void	pchbattach(device_t, device_t, void *);

Reply via email to