diff --git a/sys/arch/amd64/amd64/linux_syscall.c b/sys/arch/amd64/amd64/linux_syscall.c index ee19665a65f9..04ddbccda95d 100644 --- a/sys/arch/amd64/amd64/linux_syscall.c +++ b/sys/arch/amd64/amd64/linux_syscall.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_syscall.c,v 1.1 2005/05/03 16:26:28 manu Exp $ */ +/* $NetBSD: linux_syscall.c,v 1.2 2005/05/15 21:44:41 fvdl Exp $ */ /*- * Copyright (c) 2005 Emmanuel Dreyfus, all rights reserved. @@ -34,7 +34,7 @@ #include "opt_compat_linux.h" #include -__KERNEL_RCSID(0, "$NetBSD: linux_syscall.c,v 1.1 2005/05/03 16:26:28 manu Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_syscall.c,v 1.2 2005/05/15 21:44:41 fvdl Exp $"); #include #include @@ -47,6 +47,7 @@ __KERNEL_RCSID(0, "$NetBSD: linux_syscall.c,v 1.1 2005/05/03 16:26:28 manu Exp $ #include #include #include +#include #include #define EMULNAME(x) __CONCAT(linux_,x) diff --git a/sys/arch/amd64/conf/files.amd64 b/sys/arch/amd64/conf/files.amd64 index 06818b7bd1b9..666cf177305f 100644 --- a/sys/arch/amd64/conf/files.amd64 +++ b/sys/arch/amd64/conf/files.amd64 @@ -1,4 +1,4 @@ -# $NetBSD: files.amd64,v 1.14 2004/08/30 15:35:20 drochner Exp $ +# $NetBSD: files.amd64,v 1.15 2005/05/15 21:44:42 fvdl Exp $ # # new style config file for amd64 architecture # @@ -162,6 +162,13 @@ file arch/amd64/amd64/netbsd32_machdep.c compat_netbsd32 file arch/amd64/amd64/netbsd32_sigcode.S compat_netbsd32 & compat_16 file arch/amd64/amd64/netbsd32_syscall.c compat_netbsd32 +# Linux compatibility (COMPAT_LINUX) +include "compat/linux/files.linux" +include "compat/linux/arch/amd64/files.linux_amd64" +file arch/amd64/amd64/linux_sigcode.S compat_linux +file arch/amd64/amd64/linux_syscall.c compat_linux +file arch/amd64/amd64/linux_trap.c compat_linux + # OSS audio driver compatibility include "compat/ossaudio/files.ossaudio" diff --git a/sys/compat/linux/linux_syscall.h b/sys/compat/linux/linux_syscall.h index 09fc2ff274ff..634f26519a64 100644 --- a/sys/compat/linux/linux_syscall.h +++ b/sys/compat/linux/linux_syscall.h @@ -1,4 +1,4 @@ -/* $NetBSD: linux_syscall.h,v 1.40 2002/01/14 23:14:34 bjh21 Exp $ */ +/* $NetBSD: linux_syscall.h,v 1.41 2005/05/15 21:44:42 fvdl Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -51,6 +51,8 @@ #include #elif defined(__arm__) #include +#elif defined(__amd64__) +#include #else #define LINUX_SYS_MAXSYSCALL 0 #endif diff --git a/sys/compat/linux/linux_syscallargs.h b/sys/compat/linux/linux_syscallargs.h index abd27cc6f6fc..7764a3a29804 100644 --- a/sys/compat/linux/linux_syscallargs.h +++ b/sys/compat/linux/linux_syscallargs.h @@ -1,4 +1,4 @@ -/* $NetBSD: linux_syscallargs.h,v 1.38 2002/01/14 23:14:34 bjh21 Exp $ */ +/* $NetBSD: linux_syscallargs.h,v 1.39 2005/05/15 21:44:42 fvdl Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -51,6 +51,8 @@ #include #elif defined(__arm__) #include +#elif defined(__amd64__) +#include #else #error Undefined linux_syscallargs.h machine type. #endif diff --git a/sys/compat/linux/linux_syscalls.c b/sys/compat/linux/linux_syscalls.c index acb39b6e8b0a..51f7f3c01370 100644 --- a/sys/compat/linux/linux_syscalls.c +++ b/sys/compat/linux/linux_syscalls.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_syscalls.c,v 1.40 2002/01/14 23:14:34 bjh21 Exp $ */ +/* $NetBSD: linux_syscalls.c,v 1.41 2005/05/15 21:44:42 fvdl Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -39,7 +39,7 @@ /* XXX XXX This exists to keep kdump and friends happy. */ #include -__KERNEL_RCSID(1, "$NetBSD: linux_syscalls.c,v 1.40 2002/01/14 23:14:34 bjh21 Exp $"); +__KERNEL_RCSID(1, "$NetBSD: linux_syscalls.c,v 1.41 2005/05/15 21:44:42 fvdl Exp $"); #if defined(__i386__) #include "../../sys/compat/linux/arch/i386/linux_syscalls.c" @@ -53,6 +53,8 @@ __KERNEL_RCSID(1, "$NetBSD: linux_syscalls.c,v 1.40 2002/01/14 23:14:34 bjh21 Ex #include "../../sys/compat/linux/arch/mips/linux_syscalls.c" #elif defined(__arm__) #include "../../sys/compat/linux/arch/arm/linux_syscalls.c" +#elif defined(__amd64__) +#include "../../sys/compat/linux/arch/amd64/linux_syscalls.c" #else const char * const linux_syscallnames[] = { 0 }; #endif