pcb.h (189423) | pcb.h (189903) |
---|---|
1/*- 2 * Copyright (c) 2003 Peter Wemm. 3 * Copyright (c) 1990 The Regents of the University of California. 4 * All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * William Jolitz. 8 * --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * from: @(#)pcb.h 5.10 (Berkeley) 5/12/91 | 1/*- 2 * Copyright (c) 2003 Peter Wemm. 3 * Copyright (c) 1990 The Regents of the University of California. 4 * All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * William Jolitz. 8 * --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * from: @(#)pcb.h 5.10 (Berkeley) 5/12/91 |
34 * $FreeBSD: head/sys/amd64/include/pcb.h 189423 2009-03-05 19:42:11Z jhb $ | 34 * $FreeBSD: head/sys/amd64/include/pcb.h 189903 2009-03-17 00:48:11Z jkim $ |
35 */ 36 37#ifndef _AMD64_PCB_H_ 38#define _AMD64_PCB_H_ 39 40/* 41 * AMD64 process control block 42 */ --- 34 unchanged lines hidden (view full) --- 77 uint16_t pcb_initial_fpucw; 78 79 caddr_t pcb_onfault; /* copyin/out fault recovery */ 80 81 /* 32-bit segment descriptor */ 82 struct user_segment_descriptor pcb_gs32sd; 83}; 84 | 35 */ 36 37#ifndef _AMD64_PCB_H_ 38#define _AMD64_PCB_H_ 39 40/* 41 * AMD64 process control block 42 */ --- 34 unchanged lines hidden (view full) --- 77 uint16_t pcb_initial_fpucw; 78 79 caddr_t pcb_onfault; /* copyin/out fault recovery */ 80 81 /* 32-bit segment descriptor */ 82 struct user_segment_descriptor pcb_gs32sd; 83}; 84 |
85struct xpcb { 86 struct pcb xpcb_pcb; 87 register_t xpcb_cr0; 88 register_t xpcb_cr2; 89 register_t xpcb_cr4; 90 register_t xpcb_kgsbase; 91 uint32_t xpcb_ss; 92 struct region_descriptor xpcb_gdt; 93 struct region_descriptor xpcb_idt; 94 struct region_descriptor xpcb_ldt; 95 uint16_t xpcb_tr; 96}; 97 |
|
85#ifdef _KERNEL 86struct trapframe; 87 88void makectx(struct trapframe *, struct pcb *); 89void savectx(struct pcb *); | 98#ifdef _KERNEL 99struct trapframe; 100 101void makectx(struct trapframe *, struct pcb *); 102void savectx(struct pcb *); |
103int savectx2(struct xpcb *); |
|
90#endif 91 92#endif /* _AMD64_PCB_H_ */ | 104#endif 105 106#endif /* _AMD64_PCB_H_ */ |