adjust limits takes struct proc again.
This commit is contained in:
parent
0470afd097
commit
887f588c92
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: netbsd32_machdep.c,v 1.29 2006/11/21 14:32:27 christos Exp $ */
|
||||
/* $NetBSD: netbsd32_machdep.c,v 1.30 2006/11/21 15:02:18 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2001 Wasabi Systems, Inc.
|
||||
|
@ -36,7 +36,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep.c,v 1.29 2006/11/21 14:32:27 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep.c,v 1.30 2006/11/21 15:02:18 christos Exp $");
|
||||
|
||||
#include "opt_compat_netbsd.h"
|
||||
#include "opt_coredump.h"
|
||||
|
@ -125,7 +125,7 @@ netbsd32_setregs(struct lwp *l, struct exec_package *pack, u_long stack)
|
|||
pmap_ldt_cleanup(p);
|
||||
#endif
|
||||
|
||||
netbsd32_adjust_limits(l);
|
||||
netbsd32_adjust_limits(p);
|
||||
|
||||
l->l_md.md_flags &= ~MDP_USEDFPU;
|
||||
pcb->pcb_flags = 0;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: netbsd32_machdep.c,v 1.64 2006/11/21 14:32:27 christos Exp $ */
|
||||
/* $NetBSD: netbsd32_machdep.c,v 1.65 2006/11/21 15:02:18 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998, 2001 Matthew R. Green
|
||||
|
@ -29,7 +29,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep.c,v 1.64 2006/11/21 14:32:27 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep.c,v 1.65 2006/11/21 15:02:18 christos Exp $");
|
||||
|
||||
#ifdef _KERNEL_OPT
|
||||
#include "opt_compat_netbsd.h"
|
||||
|
@ -112,7 +112,7 @@ netbsd32_setregs(struct lwp *l, struct exec_package *pack, u_long stack)
|
|||
/* Mark this as a 32-bit emulation */
|
||||
p->p_flag |= P_32;
|
||||
|
||||
netbsd32_adjust_limits(l);
|
||||
netbsd32_adjust_limits(p);
|
||||
|
||||
/* Setup the ev_out32 hook */
|
||||
#if NFIRM_EVENTS > 0
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: netbsd32.h,v 1.55 2006/11/21 14:32:27 christos Exp $ */
|
||||
/* $NetBSD: netbsd32.h,v 1.56 2006/11/21 15:02:18 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998, 2001 Matthew R. Green
|
||||
|
@ -676,7 +676,7 @@ int coredump_netbsd32(struct lwp *, void *);
|
|||
void netbsd32_from_stat43 __P((struct stat43 *, struct netbsd32_stat43 *));
|
||||
|
||||
vaddr_t netbsd32_vm_default_addr(struct proc *, vaddr_t, vsize_t);
|
||||
void netbsd32_adjust_limits(struct lwp *);
|
||||
void netbsd32_adjust_limits(struct proc *);
|
||||
|
||||
void netbsd32_si_to_si32(siginfo32_t *, const siginfo_t *);
|
||||
void netbsd32_si32_to_si(siginfo_t *, const siginfo32_t *);
|
||||
|
|
Loading…
Reference in New Issue