pcpu.h (87702) | pcpu.h (93264) |
---|---|
1/*- 2 * Copyright (c) Peter Wemm <peter@netplex.com.au> 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 --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) Peter Wemm <peter@netplex.com.au> 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 --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/i386/include/pcpu.h 87702 2001-12-11 23:33:44Z jhb $ | 26 * $FreeBSD: head/sys/i386/include/pcpu.h 93264 2002-03-27 05:39:23Z dillon $ |
27 */ 28 29#ifndef _MACHINE_PCPU_H_ 30#define _MACHINE_PCPU_H_ 31 32#ifdef _KERNEL 33 34#ifndef __GNUC__ --- 10 unchanged lines hidden (view full) --- 45 * to each CPU's data can be set up for things like "check curproc on all 46 * other processors" 47 */ 48#define PCPU_MD_FIELDS \ 49 struct pcpu *pc_prvspace; /* Self-reference */ \ 50 struct i386tss pc_common_tss; \ 51 struct segment_descriptor pc_common_tssd; \ 52 struct segment_descriptor *pc_tss_gdt; \ | 27 */ 28 29#ifndef _MACHINE_PCPU_H_ 30#define _MACHINE_PCPU_H_ 31 32#ifdef _KERNEL 33 34#ifndef __GNUC__ --- 10 unchanged lines hidden (view full) --- 45 * to each CPU's data can be set up for things like "check curproc on all 46 * other processors" 47 */ 48#define PCPU_MD_FIELDS \ 49 struct pcpu *pc_prvspace; /* Self-reference */ \ 50 struct i386tss pc_common_tss; \ 51 struct segment_descriptor pc_common_tssd; \ 52 struct segment_descriptor *pc_tss_gdt; \ |
53 int pc_currentldt | 53 int pc_currentldt; \ 54 u_int32_t pc_int_pending; /* master int pending flag */ \ 55 u_int32_t pc_ipending; /* pending slow interrupts */ \ 56 u_int32_t pc_fpending; /* pending fast interrupts */ \ 57 u_int32_t pc_spending /* pending soft interrupts */ |
54 55/* 56 * Evaluates to the byte offset of the per-cpu variable name. 57 */ 58#define __pcpu_offset(name) \ 59 __offsetof(struct pcpu, name) 60 61/* --- 86 unchanged lines hidden --- | 58 59/* 60 * Evaluates to the byte offset of the per-cpu variable name. 61 */ 62#define __pcpu_offset(name) \ 63 __offsetof(struct pcpu, name) 64 65/* --- 86 unchanged lines hidden --- |