Subject: please review fix for Darwin emulation
To: None <port-powerpc@netbsd.org>
From: Matthias Drochner <M.Drochner@fz-juelich.de>
List: port-powerpc
Date: 06/23/2004 15:03:36
This is a multipart MIME message.

--==_Exmh_31256160893540
Content-Type: text/plain; charset=us-ascii


Hi -
would someone please confirm that the appended patch
is correct?
It has been lingering in my tree for quite a while,
but I can't test it.
In my understanding, it doesn't make sense to map
a NetBSD signal trampoline into a Darwin process.

best regards
Matthias



--==_Exmh_31256160893540
Content-Type: text/plain ; name="darwin_sig.txt"; charset=us-ascii
Content-Description: darwin_sig.txt
Content-Disposition: attachment; filename="darwin_sig.txt"

--- darwin_exec.c.~1.34.~	Mon Jan  5 16:01:26 2004
+++ darwin_exec.c	Fri Mar 26 18:26:29 2004
@@ -89,11 +89,6 @@ void syscall(void);
 void mach_syscall_intern(struct proc *);
 #endif
 
-#if !defined(__HAVE_SIGINFO) || defined(COMPAT_16)
-extern char sigcode[], esigcode[];
-struct uvm_object *emul_darwin_object;
-#endif
-
 const struct emul emul_darwin = {
 	"darwin",
 	"/emul/darwin",
@@ -112,15 +107,9 @@ const struct emul emul_darwin = {
 	darwin_sendsig,
 	darwin_trapsignal,
 	darwin_tracesig,
-#if !defined(__HAVE_SIGINFO) || defined(COMPAT_16)
-	sigcode,
-	esigcode,
-	&emul_darwin_object,
-#else
 	NULL,
 	NULL,
 	NULL,
-#endif
 	setregs,
 	darwin_e_proc_exec,
 	darwin_e_proc_fork,

--==_Exmh_31256160893540--