From aab3cbfbad824f7103177f04b74fc1ecc475a374 Mon Sep 17 00:00:00 2001 From: oki Date: Tue, 20 Jun 2006 14:11:56 +0000 Subject: [PATCH] Added saemul_pecoff structure, and (hope) work again w/ pthread. --- sys/compat/pecoff/pecoff_emul.c | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/sys/compat/pecoff/pecoff_emul.c b/sys/compat/pecoff/pecoff_emul.c index b75a47740130..f7e5111663e0 100644 --- a/sys/compat/pecoff/pecoff_emul.c +++ b/sys/compat/pecoff/pecoff_emul.c @@ -1,4 +1,4 @@ -/* $NetBSD: pecoff_emul.c,v 1.15 2005/12/11 12:20:23 christos Exp $ */ +/* $NetBSD: pecoff_emul.c,v 1.16 2006/06/20 14:11:56 oki Exp $ */ /* * Copyright (c) 2000 Masaru OKI @@ -37,7 +37,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: pecoff_emul.c,v 1.15 2005/12/11 12:20:23 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pecoff_emul.c,v 1.16 2006/06/20 14:11:56 oki Exp $"); /*#define DEBUG_PECOFF*/ @@ -47,6 +47,8 @@ __KERNEL_RCSID(0, "$NetBSD: pecoff_emul.c,v 1.15 2005/12/11 12:20:23 christos Ex #include #include +#include +#include #include #include #include @@ -80,6 +82,17 @@ struct uvm_object *emul_pecoff_object; void syscall(void); #endif +const struct sa_emul saemul_pecoff = { + sizeof(ucontext_t), + sizeof(struct sa_t), + sizeof(struct sa_t *), + NULL, + NULL, + cpu_upcall, + (void (*)(struct lwp *, void *))getucontext, + sa_ucsp +}; + const struct emul emul_pecoff = { "pecoff", "/emul/pecoff", @@ -122,4 +135,6 @@ const struct emul emul_pecoff = { NULL, uvm_default_mapaddr, + NULL, + &saemul_pecoff, };