If not MULTIPROCESSOR then identify the interrupt target cpu by hwrpb id (%d)
rather than attachment name, and hence avoid referencing `cpus'.
This commit is contained in:
parent
d2a91d2279
commit
78492e307a
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: tlsb.c,v 1.13 1998/09/29 04:22:36 thorpej Exp $ */
|
/* $NetBSD: tlsb.c,v 1.14 1998/10/01 22:57:30 ross Exp $ */
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1997 by Matthew Jacob
|
* Copyright (c) 1997 by Matthew Jacob
|
||||||
* NASA AMES Research Center.
|
* NASA AMES Research Center.
|
||||||
|
@ -39,7 +39,7 @@
|
||||||
|
|
||||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||||
|
|
||||||
__KERNEL_RCSID(0, "$NetBSD: tlsb.c,v 1.13 1998/09/29 04:22:36 thorpej Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: tlsb.c,v 1.14 1998/10/01 22:57:30 ross Exp $");
|
||||||
|
|
||||||
#include "opt_multiprocessor.h"
|
#include "opt_multiprocessor.h"
|
||||||
|
|
||||||
|
@ -231,14 +231,16 @@ tlsbattach(parent, self, aux)
|
||||||
cpus[hwrpb->rpb_primary_cpu_id]->sc_dev.dv_xname);
|
cpus[hwrpb->rpb_primary_cpu_id]->sc_dev.dv_xname);
|
||||||
TLSB_PUT_NODEREG(node, TLCPUMASK,
|
TLSB_PUT_NODEREG(node, TLCPUMASK,
|
||||||
(1UL << hwrpb->rpb_primary_cpu_id));
|
(1UL << hwrpb->rpb_primary_cpu_id));
|
||||||
|
printf("%s node %d: routing interrupts to %s\n",
|
||||||
|
self->dv_xname, node,
|
||||||
|
cpus[hwrpb->rpb_primary_cpu_id]->sc_dev.dv_xname);
|
||||||
#else
|
#else
|
||||||
/*
|
/*
|
||||||
* Make sure interrupts are sent to the primary
|
* Make sure interrupts are sent to the primary
|
||||||
* CPU.
|
* CPU.
|
||||||
*/
|
*/
|
||||||
printf("%s node %d: routing interrupts to %s\n",
|
printf("%s node %d: routing interrupts to cpu id %d\n",
|
||||||
self->dv_xname, node,
|
self->dv_xname, node, hwrpb->rpb_primary_cpu_id);
|
||||||
cpus[hwrpb->rpb_primary_cpu_id]->sc_dev.dv_xname);
|
|
||||||
TLSB_PUT_NODEREG(node, TLCPUMASK,
|
TLSB_PUT_NODEREG(node, TLCPUMASK,
|
||||||
(1UL << hwrpb->rpb_primary_cpu_id));
|
(1UL << hwrpb->rpb_primary_cpu_id));
|
||||||
#endif /* MULTIPROCESSOR */
|
#endif /* MULTIPROCESSOR */
|
||||||
|
|
Loading…
Reference in New Issue