diff options
author | fsmp <fsmp@FreeBSD.org> | 1997-07-18 21:27:53 +0000 |
---|---|---|
committer | fsmp <fsmp@FreeBSD.org> | 1997-07-18 21:27:53 +0000 |
commit | ee22260a440c99c7f84e51e6c7baabad641f9d9b (patch) | |
tree | bd0d6b01bc1125ca84a7c7dc8a4398f8e6148344 /sys/i386/isa/apic_vector.s | |
parent | 6c57ae296c86a1387b2a8bf05ccd6e17dfb792b2 (diff) | |
download | FreeBSD-src-ee22260a440c99c7f84e51e6c7baabad641f9d9b.zip FreeBSD-src-ee22260a440c99c7f84e51e6c7baabad641f9d9b.tar.gz |
Split TEST_CPUSTOP code into CPUSTOP_ON_DDBBREAK and mainline code.
Diffstat (limited to 'sys/i386/isa/apic_vector.s')
-rw-r--r-- | sys/i386/isa/apic_vector.s | 30 |
1 files changed, 7 insertions, 23 deletions
diff --git a/sys/i386/isa/apic_vector.s b/sys/i386/isa/apic_vector.s index 807223b..9ea96ca 100644 --- a/sys/i386/isa/apic_vector.s +++ b/sys/i386/isa/apic_vector.s @@ -1,10 +1,11 @@ /* * from: vector.s, 386BSD 0.1 unknown origin - * $Id: apic_vector.s,v 1.7 1997/07/15 02:49:21 fsmp Exp $ + * $Id: apic_vector.s,v 1.12 1997/07/18 19:47:13 smp Exp smp $ */ -#include <machine/smptests.h> /** TEST_CPUSTOP */ +#include <machine/smptests.h> /** various counters */ +#include "i386/isa/intr_machdep.h" /* convert an absolute IRQ# into a bitmask */ #define IRQ_BIT(irq_num) (1 << (irq_num)) @@ -212,10 +213,6 @@ _Xinvltlb: iret -#ifdef TEST_CPUSTOP - -#include "i386/isa/intr_machdep.h" - /* * Executed by a CPU when it receives an Xcpustop IPI from another CPU, * @@ -263,8 +260,6 @@ _Xcpustop: popl %eax iret -#endif /* TEST_CPUSTOP */ - MCOUNT_LABEL(bintr) FAST_INTR(0,fastintr0) @@ -359,33 +354,22 @@ _sihits: #ifdef COUNT_XINVLTLB_HITS .globl _xhits _xhits: - .long 0 - .long 0 - .long 0 - .long 0 + .space (NCPU * 4), 0 #endif /* COUNT_XINVLTLB_HITS */ -#ifdef TEST_CPUSTOP - - .globl _stopped_cpus +/* variables used by stop_cpus()/restart_cpus()/Xcpustop */ + .globl _stopped_cpus, _started_cpus _stopped_cpus: .long 0 - - .globl _started_cpus _started_cpus: .long 0 #ifdef COUNT_CSHITS .globl _cshits _cshits: - .long 0 - .long 0 - .long 0 - .long 0 + .space (NCPU * 4), 0 #endif /* COUNT_CSHITS */ -#endif /* TEST_CPUSTOP */ - /* * Interrupt counters and names. The format of these and the label names |