Deleted Added
full compact
sys_machdep.c (77502) sys_machdep.c (81493)
1/*-
2 * Copyright (c) 1990 The Regents of the University of California.
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

--- 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: @(#)sys_machdep.c 5.5 (Berkeley) 1/19/91
1/*-
2 * Copyright (c) 1990 The Regents of the University of California.
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

--- 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: @(#)sys_machdep.c 5.5 (Berkeley) 1/19/91
34 * $FreeBSD: head/sys/amd64/amd64/sys_machdep.c 77502 2001-05-30 21:57:52Z jhb $
34 * $FreeBSD: head/sys/amd64/amd64/sys_machdep.c 81493 2001-08-10 22:53:32Z jhb $
35 *
36 */
37
38#include <sys/param.h>
39#include <sys/systm.h>
40#include <sys/lock.h>
41#include <sys/malloc.h>
42#include <sys/mutex.h>

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

152 ssdtosd(&ssd, &ext->ext_tssd);
153
154 KASSERT(p == curproc, ("giving a TSS to non-curproc"));
155 KASSERT(p->p_addr->u_pcb.pcb_ext == 0, ("already have a TSS!"));
156 mtx_lock_spin(&sched_lock);
157 p->p_addr->u_pcb.pcb_ext = ext;
158
159 /* switch to the new TSS after syscall completes */
35 *
36 */
37
38#include <sys/param.h>
39#include <sys/systm.h>
40#include <sys/lock.h>
41#include <sys/malloc.h>
42#include <sys/mutex.h>

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

152 ssdtosd(&ssd, &ext->ext_tssd);
153
154 KASSERT(p == curproc, ("giving a TSS to non-curproc"));
155 KASSERT(p->p_addr->u_pcb.pcb_ext == 0, ("already have a TSS!"));
156 mtx_lock_spin(&sched_lock);
157 p->p_addr->u_pcb.pcb_ext = ext;
158
159 /* switch to the new TSS after syscall completes */
160 need_resched(p);
160 p->p_sflag |= PS_NEEDRESCHED;
161 mtx_unlock_spin(&sched_lock);
162
163 return 0;
164}
165
166static int
167i386_set_ioperm(p, args)
168 struct proc *p;

--- 367 unchanged lines hidden ---
161 mtx_unlock_spin(&sched_lock);
162
163 return 0;
164}
165
166static int
167i386_set_ioperm(p, args)
168 struct proc *p;

--- 367 unchanged lines hidden ---