From 37402373e962bc2df4da191c89fb39da34833968 Mon Sep 17 00:00:00 2001 From: Marcel Moolenaar Date: Sun, 1 Apr 2007 06:15:53 +0000 Subject: [PATCH] When writing to PCI configuration registers, don't immediately read the same register back. It can cause hangs or machine checks in certain cases. One particular case is with bge(4) when a reset is initiated for the controller. MFC after: 1 month --- sys/powerpc/powermac/uninorth.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sys/powerpc/powermac/uninorth.c b/sys/powerpc/powermac/uninorth.c index fb1674d37a19..97bd80df1f42 100644 --- a/sys/powerpc/powermac/uninorth.c +++ b/sys/powerpc/powermac/uninorth.c @@ -303,15 +303,12 @@ uninorth_write_config(device_t dev, u_int bus, u_int slot, u_int func, switch (width) { case 1: out8rb(caoff, val); - (void)in8rb(caoff); break; case 2: out16rb(caoff, val); - (void)in16rb(caoff); break; case 4: out32rb(caoff, val); - (void)in32rb(caoff); break; } }