summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorkstailey <kstailey@cvs.openbsd.org>1999-09-12 14:15:18 +0000
committerkstailey <kstailey@cvs.openbsd.org>1999-09-12 14:15:18 +0000
commit4bd103c4353ae5c84c7366c63e8dc83c82437cdc (patch)
treef892dd5dcb3b772c932c6d8b6bce9c6b0fa6ac0b /sys/kern
parent3ce2c3853e88f4a74866322d7fcc5f644595f04c (diff)
Add COMPAT_NETBSD. Currently only works for ELF64. Many missing system calls.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/exec_elf64.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/kern/exec_elf64.c b/sys/kern/exec_elf64.c
index 9285f12f447..a671fcfb21a 100644
--- a/sys/kern/exec_elf64.c
+++ b/sys/kern/exec_elf64.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: exec_elf64.c,v 1.1 1999/09/10 12:24:27 kstailey Exp $ */
+/* $OpenBSD: exec_elf64.c,v 1.2 1999/09/12 14:15:17 kstailey Exp $ */
/*
* Copyright (c) 1996 Per Fogelstrom
@@ -71,6 +71,10 @@
#include <compat/freebsd/freebsd_exec.h>
#endif
+#ifdef COMPAT_NETBSD
+#include <compat/netbsd/netbsd_exec.h>
+#endif
+
struct elf64_probe_entry {
int (*func) __P((struct proc *, struct exec_package *, char *,
u_long *, u_int8_t *));
@@ -87,6 +91,9 @@ struct elf64_probe_entry {
#ifdef COMPAT_LINUX
{ linux_elf64_probe, 1 << OOS_LINUX },
#endif
+#ifdef COMPAT_NETBSD
+ { netbsd_elf64_probe, 1 << OOS_NETBSD },
+#endif
{ 0, 1 << OOS_OPENBSD }
};