View | Details | Raw Unified | Return to bug 237666 | Differences between
and this patch

Collapse All | Expand All

(-)sys/amd64/pci/pci_cfgreg.c (+7 lines)
Lines 161-166 Link Here
161
	 */
161
	 */
162
}
162
}
163
163
164
#include <sys/kdb.h>
165
164
static int
166
static int
165
pcireg_cfgread(int bus, int slot, int func, int reg, int bytes)
167
pcireg_cfgread(int bus, int slot, int func, int reg, int bytes)
166
{
168
{
Lines 184-189 Link Here
184
		pci_cfgdisable();
186
		pci_cfgdisable();
185
	}
187
	}
186
	mtx_unlock_spin(&pcicfg_mtx);
188
	mtx_unlock_spin(&pcicfg_mtx);
189
190
	if (cold == 0 && port == 0) {
191
		printf("Invalid read BUS=%d SLOT=%d FUNC=%d REG=%d BYTES=%d\n", bus, slot, func, reg, bytes);
192
		kdb_backtrace();
193
	}
187
	return (data);
194
	return (data);
188
}
195
}
189
196

Return to bug 237666