Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Lightly KNF. Changes to the generated assembly ...
details: https://anonhg.NetBSD.org/src/rev/d884b18f8b0b
branches: trunk
changeset: 763859:d884b18f8b0b
user: dyoung <dyoung%NetBSD.org@localhost>
date: Tue Apr 05 23:10:52 2011 +0000
description:
Lightly KNF. Changes to the generated assembly language appeared to
correspond to line numbers in KASSERT() statements.
diffstat:
sys/dev/pci/pci.c | 19 +++++++++++++------
1 files changed, 13 insertions(+), 6 deletions(-)
diffs (49 lines):
diff -r 2b9e7eefd1e3 -r d884b18f8b0b sys/dev/pci/pci.c
--- a/sys/dev/pci/pci.c Tue Apr 05 23:05:06 2011 +0000
+++ b/sys/dev/pci/pci.c Tue Apr 05 23:10:52 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pci.c,v 1.137 2011/04/05 23:05:06 macallan Exp $ */
+/* $NetBSD: pci.c,v 1.138 2011/04/05 23:10:52 dyoung Exp $ */
/*
* Copyright (c) 1995, 1996, 1997, 1998
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pci.c,v 1.137 2011/04/05 23:05:06 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pci.c,v 1.138 2011/04/05 23:10:52 dyoung Exp $");
#include "opt_pci.h"
@@ -303,9 +303,15 @@
sizeof(sc->PCI_SC_DEVICESC(device, function).c_range));
i = 0;
switch (PCI_HDRTYPE_TYPE(bhlcr)) {
- case PCI_HDRTYPE_PPB: endbar = PCI_MAPREG_PPB_END; break;
- case PCI_HDRTYPE_PCB: endbar = PCI_MAPREG_PCB_END; break;
- default: endbar = PCI_MAPREG_END; break;
+ case PCI_HDRTYPE_PPB:
+ endbar = PCI_MAPREG_PPB_END;
+ break;
+ case PCI_HDRTYPE_PCB:
+ endbar = PCI_MAPREG_PCB_END;
+ break;
+ default:
+ endbar = PCI_MAPREG_END;
+ break;
}
for (bar = PCI_MAPREG_START; bar < endbar; bar += width) {
struct pci_range *r;
@@ -373,9 +379,10 @@
* If the cache line size is not configured, then
* clear the MRL/MRM/MWI command-ok flags.
*/
- if (PCI_CACHELINE(bhlcr) == 0)
+ if (PCI_CACHELINE(bhlcr) == 0) {
pa.pa_flags &= ~(PCI_FLAGS_MRL_OKAY|
PCI_FLAGS_MRM_OKAY|PCI_FLAGS_MWI_OKAY);
+ }
if (sc->sc_bridgetag == NULL) {
pa.pa_intrswiz = 0;
Home |
Main Index |
Thread Index |
Old Index