if machdep define LINUX_MACHDEP_HAS_SEPARATED_SYSCALL is defined, put
linux_syscall() to emul_linux define LINUX_MACHDEP_HAS_SEPARATED_SYSCALL for i386
This commit is contained in:
parent
6719ee1cf7
commit
da1aefe9bf
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: linux_machdep.h,v 1.12 2000/06/11 09:21:16 veego Exp $ */
|
||||
/* $NetBSD: linux_machdep.h,v 1.13 2000/12/02 16:05:04 jdolecek Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1995 The NetBSD Foundation, Inc.
|
||||
|
@ -126,4 +126,10 @@ __END_DECLS
|
|||
#define LINUX_VT_ACTIVATE 0x5606
|
||||
#define LINUX_VT_WAITACTIVE 0x5607
|
||||
|
||||
/*
|
||||
* Does the port have separated linux_syscall() ?
|
||||
*/
|
||||
#define LINUX_MACHDEP_HAS_SEPARATED_SYSCALL
|
||||
void linux_syscall __P((struct trapframe *));
|
||||
|
||||
#endif /* _I386_LINUX_MACHDEP_H */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: linux_exec.c,v 1.41 2000/12/01 20:31:13 jdolecek Exp $ */
|
||||
/* $NetBSD: linux_exec.c,v 1.42 2000/12/02 16:05:04 jdolecek Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1994, 1995, 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -124,6 +124,11 @@ const struct emul emul_linux = {
|
|||
#else
|
||||
0,
|
||||
#endif
|
||||
#ifdef LINUX_MACHDEP_HAS_SEPARATED_SYSCALL
|
||||
linux_syscall,
|
||||
#else
|
||||
NULL,
|
||||
#endif
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue