Whitespace fix. No functional change.
This commit is contained in:
parent
16b1ab5abf
commit
080cc7bce9
|
@ -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>
|
||||
|
@ -71,6 +71,5 @@ apic_format_redir(const char *where1, const char *where2, int idx,
|
|||
printf(" %s", buf);
|
||||
}
|
||||
|
||||
|
||||
printf("\n");
|
||||
}
|
||||
|
|
|
@ -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,7 +139,7 @@ ioapic_unlock(struct ioapic_softc *sc, u_long flags)
|
|||
* 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;
|
||||
|
||||
|
@ -150,7 +150,7 @@ ioapic_read_ul(struct ioapic_softc *sc,int regid)
|
|||
}
|
||||
|
||||
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 @@ ioapic_read(struct ioapic_softc *sc, int regid)
|
|||
}
|
||||
|
||||
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 @@ ioapic_add(struct ioapic_softc *sc)
|
|||
}
|
||||
|
||||
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));
|
||||
|
@ -340,7 +340,7 @@ ioapic_attach(device_t parent, device_t self, void *aux)
|
|||
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;
|
||||
|
@ -396,7 +396,7 @@ ioapic_attach(device_t parent, device_t self, void *aux)
|
|||
#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
|
||||
}
|
||||
|
@ -527,7 +527,7 @@ ioapic_trymask(struct pic *pic, int pin)
|
|||
|
||||
/* 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;
|
||||
|
|
Loading…
Reference in New Issue