Deleted Added
sdiff udiff text old ( 106189 ) new ( 115084 )
full compact
1/*-
2 * Copyright (c) 2003 Doug Rabson
3 * Copyright (c) 2000 Doug Rabson
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.

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

19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
27 * $FreeBSD: head/sys/ia64/include/pcb.h 115084 2003-05-16 21:26:42Z marcel $
28 */
29
30#ifndef _MACHINE_PCB_H_
31#define _MACHINE_PCB_H_
32
33#include <machine/_regset.h>
34
35/*
36 * PCB: process control block
37 */
38struct pmap;
39struct pcb {
40 struct _special pcb_special;
41 struct _callee_saved pcb_preserved;
42 struct _callee_saved_fp pcb_preserved_fp;
43 struct _high_fp pcb_high_fp;
44 struct pcpu *pcb_fpcpu;
45 struct pmap *pcb_current_pmap;
46
47 uint64_t pcb_onfault; /* for copy faults */
48 uint64_t pcb_accessaddr; /* for [fs]uswintr */
49
50#if IA32
51 uint64_t pcb_ia32_cflg;
52 uint64_t pcb_ia32_eflag;
53 uint64_t pcb_ia32_fcr;
54 uint64_t pcb_ia32_fdr;
55 uint64_t pcb_ia32_fir;
56 uint64_t pcb_ia32_fsr;
57#endif
58};
59
60#ifdef _KERNEL
61
62#define savectx(p) swapctx(p, NULL)
63void restorectx(struct pcb *) __dead2;
64int swapctx(struct pcb *old, struct pcb *new);
65
66#if IA32
67void ia32_restorectx(struct pcb *);
68void ia32_savectx(struct pcb *);
69#endif
70
71#endif
72
73#endif /* _MACHINE_PCB_H_ */