From ee22260a440c99c7f84e51e6c7baabad641f9d9b Mon Sep 17 00:00:00 2001 From: fsmp Date: Fri, 18 Jul 1997 21:27:53 +0000 Subject: Split TEST_CPUSTOP code into CPUSTOP_ON_DDBBREAK and mainline code. --- sys/i386/isa/apic_vector.s | 30 +++++++----------------------- 1 file changed, 7 insertions(+), 23 deletions(-) (limited to 'sys/i386/isa/apic_vector.s') 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 /** TEST_CPUSTOP */ +#include /** 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 -- cgit v1.1