pcb.h (118811) | pcb.h (131905) |
---|---|
1/*- | 1/*- |
2 * Copyright (c) 2003 Doug Rabson | 2 * Copyright (c) 2003,2004 Marcel Moolenaar |
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 * | 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 118811 2003-08-12 03:51:53Z marcel $ | 27 * $FreeBSD: head/sys/ia64/include/pcb.h 131905 2004-07-10 19:56:00Z marcel $ |
28 */ 29 30#ifndef _MACHINE_PCB_H_ 31#define _MACHINE_PCB_H_ 32 33#include <machine/_regset.h> 34 35/* --- 18 unchanged lines hidden (view full) --- 54 uint64_t pcb_ia32_fir; 55 uint64_t pcb_ia32_fsr; 56#endif 57}; 58 59#ifdef _KERNEL 60 61#define savectx(p) swapctx(p, NULL) | 28 */ 29 30#ifndef _MACHINE_PCB_H_ 31#define _MACHINE_PCB_H_ 32 33#include <machine/_regset.h> 34 35/* --- 18 unchanged lines hidden (view full) --- 54 uint64_t pcb_ia32_fir; 55 uint64_t pcb_ia32_fsr; 56#endif 57}; 58 59#ifdef _KERNEL 60 61#define savectx(p) swapctx(p, NULL) |
62 63struct trapframe; 64 65void makectx(struct trapframe *, struct pcb *); |
|
62void restorectx(struct pcb *) __dead2; 63int swapctx(struct pcb *old, struct pcb *new); 64 65#if IA32 66void ia32_restorectx(struct pcb *); 67void ia32_savectx(struct pcb *); 68#endif 69 70#endif 71 72#endif /* _MACHINE_PCB_H_ */ | 66void restorectx(struct pcb *) __dead2; 67int swapctx(struct pcb *old, struct pcb *new); 68 69#if IA32 70void ia32_restorectx(struct pcb *); 71void ia32_savectx(struct pcb *); 72#endif 73 74#endif 75 76#endif /* _MACHINE_PCB_H_ */ |