Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86/x86 Whitespace fix. No functional change.
details: https://anonhg.NetBSD.org/src/rev/73c9f3aac559
branches: trunk
changeset: 457153:73c9f3aac559
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Thu Jun 13 07:28:17 2019 +0000
description:
Whitespace fix. No functional change.
diffstat:
sys/arch/x86/x86/apic.c | 5 ++---
sys/arch/x86/x86/ioapic.c | 40 ++++++++++++++++++++--------------------
2 files changed, 22 insertions(+), 23 deletions(-)
diffs (187 lines):
diff -r 1bafdf7ada51 -r 73c9f3aac559 sys/arch/x86/x86/apic.c
--- a/sys/arch/x86/x86/apic.c Thu Jun 13 06:34:30 2019 +0000
+++ b/sys/arch/x86/x86/apic.c Thu Jun 13 07:28:17 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: apic.c,v 1.8 2008/12/16 22:35:28 christos Exp $ */
+/* $NetBSD: apic.c,v 1.9 2019/06/13 07:28:17 msaitoh Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: apic.c,v 1.8 2008/12/16 22:35:28 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: apic.c,v 1.9 2019/06/13 07:28:17 msaitoh Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -70,7 +70,6 @@
snprintb(buf, sizeof(buf), redirhifmt, redirhi);
printf(" %s", buf);
}
-
printf("\n");
}
diff -r 1bafdf7ada51 -r 73c9f3aac559 sys/arch/x86/x86/ioapic.c
--- a/sys/arch/x86/x86/ioapic.c Thu Jun 13 06:34:30 2019 +0000
+++ b/sys/arch/x86/x86/ioapic.c Thu Jun 13 07:28:17 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ioapic.c,v 1.59 2018/10/08 08:05:08 cherry Exp $ */
+/* $NetBSD: ioapic.c,v 1.60 2019/06/13 07:28:17 msaitoh Exp $ */
/*-
* Copyright (c) 2000, 2009 The NetBSD Foundation, Inc.
@@ -64,7 +64,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ioapic.c,v 1.59 2018/10/08 08:05:08 cherry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ioapic.c,v 1.60 2019/06/13 07:28:17 msaitoh Exp $");
#include "opt_ddb.h"
@@ -139,10 +139,10 @@
* Register read/write routines.
*/
static inline uint32_t
-ioapic_read_ul(struct ioapic_softc *sc,int regid)
+ioapic_read_ul(struct ioapic_softc *sc, int regid)
{
uint32_t val;
-
+
*(sc->sc_reg) = regid;
val = *sc->sc_data;
@@ -150,7 +150,7 @@
}
static inline void
-ioapic_write_ul(struct ioapic_softc *sc,int regid, uint32_t val)
+ioapic_write_ul(struct ioapic_softc *sc, int regid, uint32_t val)
{
*(sc->sc_reg) = regid;
*(sc->sc_data) = val;
@@ -170,7 +170,7 @@
}
static inline void
-ioapic_write(struct ioapic_softc *sc,int regid, int val)
+ioapic_write(struct ioapic_softc *sc, int regid, int val)
{
u_long flags;
@@ -233,7 +233,7 @@
}
void
-ioapic_print_redir (struct ioapic_softc *sc, const char *why, int pin)
+ioapic_print_redir(struct ioapic_softc *sc, const char *why, int pin)
{
uint32_t redirlo = ioapic_read(sc, IOAPIC_REDLO(pin));
uint32_t redirhi = ioapic_read(sc, IOAPIC_REDHI(pin));
@@ -255,15 +255,15 @@
/*
* can't use bus_space_xxx as we don't have a bus handle ...
*/
-void
+void
ioapic_attach(device_t parent, device_t self, void *aux)
{
- struct ioapic_softc *sc = device_private(self);
+ struct ioapic_softc *sc = device_private(self);
struct apic_attach_args *aaa = (struct apic_attach_args *)aux;
int apic_id;
uint32_t ver_sz;
int i;
-
+
sc->sc_dev = self;
sc->sc_flags = aaa->flags;
sc->sc_pic.pic_apicid = aaa->apic_id;
@@ -287,7 +287,7 @@
return;
}
sc->sc_reg = (volatile uint32_t *)(bh + IOAPIC_REG);
- sc->sc_data = (volatile uint32_t *)(bh + IOAPIC_DATA);
+ sc->sc_data = (volatile uint32_t *)(bh + IOAPIC_DATA);
}
#endif
sc->sc_pa = aaa->apic_address;
@@ -332,7 +332,7 @@
printf(", %s mode",
aaa->flags & IOAPIC_PICMODE ? "PIC" : "virtual wire");
}
-
+
aprint_verbose(", version 0x%x, %d pins", sc->sc_apic_vers,
sc->sc_apic_sz);
aprint_normal("\n");
@@ -340,7 +340,7 @@
sc->sc_pins = malloc(sizeof(struct ioapic_pin) * sc->sc_apic_sz,
M_DEVBUF, M_WAITOK);
- for (i=0; i<sc->sc_apic_sz; i++) {
+ for (i = 0; i < sc->sc_apic_sz; i++) {
uint32_t redlo, redhi;
sc->sc_pins[i].ip_next = NULL;
@@ -356,14 +356,14 @@
*
* Expect all other interrupts to be PCI-like
* level triggered on low.
- */
+ */
if (i >= 16)
redlo |= IOAPIC_REDLO_LEVEL | IOAPIC_REDLO_ACTLO;
redhi = (cpu_info_primary.ci_cpuid << IOAPIC_REDHI_DEST_SHIFT);
ioapic_write(sc, IOAPIC_REDHI(i), redhi);
ioapic_write(sc, IOAPIC_REDLO(i), redlo);
}
-
+
/*
* In case the APIC is not initialized to the correct ID
* do it now.
@@ -377,10 +377,10 @@
ioapic_write(sc, IOAPIC_ID,
(ioapic_read(sc, IOAPIC_ID) & ~IOAPIC_ID_MASK)
| (sc->sc_pic.pic_apicid << IOAPIC_ID_SHIFT));
-
+
apic_id = (ioapic_read(sc, IOAPIC_ID) & IOAPIC_ID_MASK)
>> IOAPIC_ID_SHIFT;
-
+
if (apic_id != sc->sc_pic.pic_apicid)
aprint_error_dev(sc->sc_dev,
"can't remap to apid %d\n", sc->sc_pic.pic_apicid);
@@ -396,7 +396,7 @@
#if 0
/* output of this was boring. */
if (mp_verbose)
- for (i=0; i<sc->sc_apic_sz; i++)
+ for (i = 0; i < sc->sc_apic_sz; i++)
ioapic_print_redir(sc, "boot", i);
#endif
}
@@ -410,7 +410,7 @@
int delmode;
struct ioapic_pin *pp;
struct mp_intr_map *map;
-
+
pp = &sc->sc_pins[pin];
map = pp->ip_map;
redlo = map == NULL ? IOAPIC_REDLO_MASK : map->redir;
@@ -527,7 +527,7 @@
/* If pending, unmask and abort. */
redlo = ioapic_read_ul(sc, IOAPIC_REDLO(pin));
- if ((redlo & (IOAPIC_REDLO_RIRR|IOAPIC_REDLO_DELSTS)) != 0) {
+ if ((redlo & (IOAPIC_REDLO_RIRR | IOAPIC_REDLO_DELSTS)) != 0) {
redlo &= ~IOAPIC_REDLO_MASK;
ioapic_write_ul(sc, IOAPIC_REDLO(pin), redlo);
rv = false;
Home |
Main Index |
Thread Index |
Old Index