Added saemul_pecoff structure, and (hope) work again w/ pthread.

This commit is contained in:
oki 2006-06-20 14:11:56 +00:00
parent f00029f865
commit aab3cbfbad

View File

@ -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 <sys/cdefs.h>
__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 <sys/param.h>
#include <sys/proc.h>
#include <sys/sa.h>
#include <sys/savar.h>
#include <sys/malloc.h>
#include <sys/namei.h>
#include <sys/vnode.h>
@ -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,
};