apicvar.h (209371) | apicvar.h (212541) |
---|---|
1/*- 2 * Copyright (c) 2003 John Baldwin <jhb@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 12 unchanged lines hidden (view full) --- 21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * | 1/*- 2 * Copyright (c) 2003 John Baldwin <jhb@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 12 unchanged lines hidden (view full) --- 21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * |
29 * $FreeBSD: head/sys/i386/include/apicvar.h 209371 2010-06-20 21:33:29Z mav $ | 29 * $FreeBSD: head/sys/i386/include/apicvar.h 212541 2010-09-13 07:25:35Z mav $ |
30 */ 31 32#ifndef _MACHINE_APICVAR_H_ 33#define _MACHINE_APICVAR_H_ 34 35/* 36 * Local && I/O APIC variable definitions. 37 */ --- 81 unchanged lines hidden (view full) --- 119#define IPI_LAZYPMAP (APIC_IPI_INTS + 5) /* Lazy pmap release. */ 120/* Vector to handle bitmap based IPIs */ 121#define IPI_BITMAP_VECTOR (APIC_IPI_INTS + 6) 122 123/* IPIs handled by IPI_BITMAPED_VECTOR (XXX ups is there a better place?) */ 124#define IPI_AST 0 /* Generate software trap. */ 125#define IPI_PREEMPT 1 126#define IPI_HARDCLOCK 2 | 30 */ 31 32#ifndef _MACHINE_APICVAR_H_ 33#define _MACHINE_APICVAR_H_ 34 35/* 36 * Local && I/O APIC variable definitions. 37 */ --- 81 unchanged lines hidden (view full) --- 119#define IPI_LAZYPMAP (APIC_IPI_INTS + 5) /* Lazy pmap release. */ 120/* Vector to handle bitmap based IPIs */ 121#define IPI_BITMAP_VECTOR (APIC_IPI_INTS + 6) 122 123/* IPIs handled by IPI_BITMAPED_VECTOR (XXX ups is there a better place?) */ 124#define IPI_AST 0 /* Generate software trap. */ 125#define IPI_PREEMPT 1 126#define IPI_HARDCLOCK 2 |
127#define IPI_STATCLOCK 3 128#define IPI_BITMAP_LAST IPI_STATCLOCK | 127#define IPI_BITMAP_LAST IPI_HARDCLOCK |
129#define IPI_IS_BITMAPED(x) ((x) <= IPI_BITMAP_LAST) 130 131#define IPI_STOP (APIC_IPI_INTS + 7) /* Stop CPU until restarted. */ 132#define IPI_STOP_HARD (APIC_IPI_INTS + 8) /* Stop CPU with a NMI. */ 133 134#else /* XEN */ 135/* These are the normal i386 APIC definitions */ 136#define APIC_LOCAL_INTS 240 --- 10 unchanged lines hidden (view full) --- 147#define IPI_LAZYPMAP (APIC_IPI_INTS + 5) /* Lazy pmap release. */ 148/* Vector to handle bitmap based IPIs */ 149#define IPI_BITMAP_VECTOR (APIC_IPI_INTS + 6) 150 151/* IPIs handled by IPI_BITMAPED_VECTOR (XXX ups is there a better place?) */ 152#define IPI_AST 0 /* Generate software trap. */ 153#define IPI_PREEMPT 1 154#define IPI_HARDCLOCK 2 | 128#define IPI_IS_BITMAPED(x) ((x) <= IPI_BITMAP_LAST) 129 130#define IPI_STOP (APIC_IPI_INTS + 7) /* Stop CPU until restarted. */ 131#define IPI_STOP_HARD (APIC_IPI_INTS + 8) /* Stop CPU with a NMI. */ 132 133#else /* XEN */ 134/* These are the normal i386 APIC definitions */ 135#define APIC_LOCAL_INTS 240 --- 10 unchanged lines hidden (view full) --- 146#define IPI_LAZYPMAP (APIC_IPI_INTS + 5) /* Lazy pmap release. */ 147/* Vector to handle bitmap based IPIs */ 148#define IPI_BITMAP_VECTOR (APIC_IPI_INTS + 6) 149 150/* IPIs handled by IPI_BITMAPED_VECTOR (XXX ups is there a better place?) */ 151#define IPI_AST 0 /* Generate software trap. */ 152#define IPI_PREEMPT 1 153#define IPI_HARDCLOCK 2 |
155#define IPI_STATCLOCK 3 156#define IPI_BITMAP_LAST IPI_STATCLOCK | 154#define IPI_BITMAP_LAST IPI_HARDCLOCK |
157#define IPI_IS_BITMAPED(x) ((x) <= IPI_BITMAP_LAST) 158 159#define IPI_STOP (APIC_IPI_INTS + 7) /* Stop CPU until restarted. */ 160#define IPI_STOP_HARD (APIC_IPI_INTS + 8) /* Stop CPU with a NMI. */ 161#endif /* XEN */ 162 163/* 164 * The spurious interrupt can share the priority class with the IPIs since --- 98 unchanged lines hidden --- | 155#define IPI_IS_BITMAPED(x) ((x) <= IPI_BITMAP_LAST) 156 157#define IPI_STOP (APIC_IPI_INTS + 7) /* Stop CPU until restarted. */ 158#define IPI_STOP_HARD (APIC_IPI_INTS + 8) /* Stop CPU with a NMI. */ 159#endif /* XEN */ 160 161/* 162 * The spurious interrupt can share the priority class with the IPIs since --- 98 unchanged lines hidden --- |