linux_machdep.c (31e938c531dcbb708dbcd0e1d0a4ea80dcc82300) linux_machdep.c (2456a45929328ce73a40ef6577600b0f1e2cced6)
1/*-
2 * Copyright (c) 2004 Tim J. Robbins
3 * Copyright (c) 2002 Doug Rabson
4 * Copyright (c) 2000 Marcel Moolenaar
5 * All rights reserved.
6 * Copyright (c) 2013 Dmitry Chagin <dchagin@FreeBSD.org>
7 *
8 * Redistribution and use in source and binary forms, with or without

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

28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
29 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 */
31
32#include <sys/cdefs.h>
33__FBSDID("$FreeBSD$");
34
35#include <sys/param.h>
1/*-
2 * Copyright (c) 2004 Tim J. Robbins
3 * Copyright (c) 2002 Doug Rabson
4 * Copyright (c) 2000 Marcel Moolenaar
5 * All rights reserved.
6 * Copyright (c) 2013 Dmitry Chagin <dchagin@FreeBSD.org>
7 *
8 * Redistribution and use in source and binary forms, with or without

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

28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
29 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 */
31
32#include <sys/cdefs.h>
33__FBSDID("$FreeBSD$");
34
35#include <sys/param.h>
36#include <sys/capsicum.h>
37#include <sys/clock.h>
38#include <sys/dirent.h>
39#include <sys/fcntl.h>
40#include <sys/file.h>
41#include <sys/filedesc.h>
42#include <sys/kernel.h>
36#include <sys/systm.h>
43#include <sys/ktr.h>
37#include <sys/ktr.h>
44#include <sys/limits.h>
45#include <sys/lock.h>
46#include <sys/malloc.h>
47#include <sys/mman.h>
48#include <sys/mutex.h>
49#include <sys/priv.h>
50#include <sys/proc.h>
51#include <sys/ptrace.h>
38#include <sys/lock.h>
39#include <sys/malloc.h>
40#include <sys/mman.h>
41#include <sys/mutex.h>
42#include <sys/priv.h>
43#include <sys/proc.h>
44#include <sys/ptrace.h>
52#include <sys/resource.h>
53#include <sys/resourcevar.h>
54#include <sys/sched.h>
55#include <sys/syscallsubr.h>
45#include <sys/syscallsubr.h>
56#include <sys/sysproto.h>
57#include <sys/systm.h>
58#include <sys/unistd.h>
59#include <sys/vnode.h>
60#include <sys/wait.h>
61
62#include <security/mac/mac_framework.h>
63
64#include <ufs/ufs/extattr.h>
65#include <ufs/ufs/quota.h>
66#include <ufs/ufs/ufsmount.h>
67
68#include <machine/frame.h>

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

80#include <vm/vm_map.h>
81
82#include <x86/ifunc.h>
83#include <x86/reg.h>
84#include <x86/sysarch.h>
85
86#include <amd64/linux/linux.h>
87#include <amd64/linux/linux_proto.h>
46
47#include <security/mac/mac_framework.h>
48
49#include <ufs/ufs/extattr.h>
50#include <ufs/ufs/quota.h>
51#include <ufs/ufs/ufsmount.h>
52
53#include <machine/frame.h>

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

65#include <vm/vm_map.h>
66
67#include <x86/ifunc.h>
68#include <x86/reg.h>
69#include <x86/sysarch.h>
70
71#include <amd64/linux/linux.h>
72#include <amd64/linux/linux_proto.h>
88#include <compat/linux/linux_emul.h>
89#include <compat/linux/linux_file.h>
90#include <compat/linux/linux_fork.h>
73#include <compat/linux/linux_fork.h>
91#include <compat/linux/linux_ipc.h>
92#include <compat/linux/linux_misc.h>
93#include <compat/linux/linux_mmap.h>
74#include <compat/linux/linux_misc.h>
75#include <compat/linux/linux_mmap.h>
94#include <compat/linux/linux_signal.h>
95#include <compat/linux/linux_util.h>
96
97#define LINUX_ARCH_AMD64 0xc000003e
98
99int
100linux_set_upcall(struct thread *td, register_t stack)
101{
102

--- 286 unchanged lines hidden ---
76#include <compat/linux/linux_util.h>
77
78#define LINUX_ARCH_AMD64 0xc000003e
79
80int
81linux_set_upcall(struct thread *td, register_t stack)
82{
83

--- 286 unchanged lines hidden ---