Deleted Added
full compact
sys_machdep.c (92860) sys_machdep.c (93017)
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/i386/i386/sys_machdep.c 92860 2002-03-21 06:19:08Z imp $
34 * $FreeBSD: head/sys/i386/i386/sys_machdep.c 93017 2002-03-23 14:27:06Z bde $
35 *
36 */
37
38#include "opt_kstack_pages.h"
39
40#include <sys/param.h>
41#include <sys/systm.h>
42#include <sys/lock.h>

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

61
62#define MAX_LD 8192
63#define LD_PER_PAGE 512
64#define NEW_MAX_LD(num) ((num + LD_PER_PAGE) & ~(LD_PER_PAGE-1))
65#define SIZE_FROM_LARGEST_LD(num) (NEW_MAX_LD(num) << 3)
66
67
68
35 *
36 */
37
38#include "opt_kstack_pages.h"
39
40#include <sys/param.h>
41#include <sys/systm.h>
42#include <sys/lock.h>

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

61
62#define MAX_LD 8192
63#define LD_PER_PAGE 512
64#define NEW_MAX_LD(num) ((num + LD_PER_PAGE) & ~(LD_PER_PAGE-1))
65#define SIZE_FROM_LARGEST_LD(num) (NEW_MAX_LD(num) << 3)
66
67
68
69static int i386_get_ldt (struct thread *, char *);
70static int i386_set_ldt (struct thread *, char *);
71static int i386_get_ioperm (struct thread *, char *);
72static int i386_set_ioperm (struct thread *, char *);
69static int i386_get_ldt(struct thread *, char *);
70static int i386_set_ldt(struct thread *, char *);
71static int i386_get_ioperm(struct thread *, char *);
72static int i386_set_ioperm(struct thread *, char *);
73#ifdef SMP
73#ifdef SMP
74static void set_user_ldt_rv (struct thread *);
74static void set_user_ldt_rv(struct thread *);
75#endif
76
77#ifndef _SYS_SYSPROTO_H_
78struct sysarch_args {
79 int op;
80 char *parms;
81};
82#endif

--- 462 unchanged lines hidden ---
75#endif
76
77#ifndef _SYS_SYSPROTO_H_
78struct sysarch_args {
79 int op;
80 char *parms;
81};
82#endif

--- 462 unchanged lines hidden ---