Deleted Added
full compact
pcpu.h (72893) pcpu.h (74912)
1/*-
2 * Copyright (c) 1999 Luoqi Chen <luoqi@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

--- 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) 1999 Luoqi Chen <luoqi@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

--- 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/ia64/include/pcpu.h 72893 2001-02-22 15:37:34Z jhb $
26 * $FreeBSD: head/sys/ia64/include/pcpu.h 74912 2001-03-28 09:03:24Z jhb $
27 */
28
29#ifndef _MACHINE_GLOBALDATA_H_
30#define _MACHINE_GLOBALDATA_H_
31
32#ifdef _KERNEL
33
34#include <sys/queue.h>

--- 18 unchanged lines hidden (view full) ---

53 u_int gd_other_cpus; /* all other cpus */
54 u_int64_t gd_idlepcbphys; /* pa of gd_idlepcb */
55 u_int64_t gd_pending_ipis; /* pending IPI events */
56 struct pmap *gd_current_pmap; /* which pmap is active */
57 u_int32_t gd_next_asn; /* next ASN to allocate */
58 u_int32_t gd_current_asngen; /* ASN rollover check */
59
60 SLIST_ENTRY(globaldata) gd_allcpu;
27 */
28
29#ifndef _MACHINE_GLOBALDATA_H_
30#define _MACHINE_GLOBALDATA_H_
31
32#ifdef _KERNEL
33
34#include <sys/queue.h>

--- 18 unchanged lines hidden (view full) ---

53 u_int gd_other_cpus; /* all other cpus */
54 u_int64_t gd_idlepcbphys; /* pa of gd_idlepcb */
55 u_int64_t gd_pending_ipis; /* pending IPI events */
56 struct pmap *gd_current_pmap; /* which pmap is active */
57 u_int32_t gd_next_asn; /* next ASN to allocate */
58 u_int32_t gd_current_asngen; /* ASN rollover check */
59
60 SLIST_ENTRY(globaldata) gd_allcpu;
61 int gd_witness_spin_check;
61 struct lock_list_entry *gd_spinlocks;
62#ifdef KTR_PERCPU
63 volatile int gd_ktr_idx; /* Index into trace table */
64 char *gd_ktr_buf;
65 char gd_ktr_buf_data[0];
66#endif
67};
68
69SLIST_HEAD(cpuhead, globaldata);
70extern struct cpuhead cpuhead;
71
72void globaldata_init(struct globaldata *pcpu, int cpuid, size_t sz);
73struct globaldata *globaldata_find(int cpuid);
74
75#endif /* _KERNEL */
76
77#endif /* !_MACHINE_GLOBALDATA_H_ */
62#ifdef KTR_PERCPU
63 volatile int gd_ktr_idx; /* Index into trace table */
64 char *gd_ktr_buf;
65 char gd_ktr_buf_data[0];
66#endif
67};
68
69SLIST_HEAD(cpuhead, globaldata);
70extern struct cpuhead cpuhead;
71
72void globaldata_init(struct globaldata *pcpu, int cpuid, size_t sz);
73struct globaldata *globaldata_find(int cpuid);
74
75#endif /* _KERNEL */
76
77#endif /* !_MACHINE_GLOBALDATA_H_ */