LINUX_USRSTACK is only defined on i386. Thanks Izumi!
This commit is contained in:
parent
a24080409e
commit
c626c860b1
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: procfs_linux.c,v 1.12 2003/08/09 14:17:28 christos Exp $ */
|
/* $NetBSD: procfs_linux.c,v 1.13 2003/08/09 16:28:49 christos Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2001 Wasabi Systems, Inc.
|
* Copyright (c) 2001 Wasabi Systems, Inc.
|
||||||
|
@ -36,7 +36,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: procfs_linux.c,v 1.12 2003/08/09 14:17:28 christos Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: procfs_linux.c,v 1.13 2003/08/09 16:28:49 christos Exp $");
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/systm.h>
|
#include <sys/systm.h>
|
||||||
|
@ -142,10 +142,12 @@ procfs_do_pid_stat(struct proc *p, struct lwp *l, struct pfsnode *pfs,
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#ifdef LINUX_USRSTACK
|
||||||
if (strcmp(p->p_emul->e_name, "linux") == 0 &&
|
if (strcmp(p->p_emul->e_name, "linux") == 0 &&
|
||||||
LINUX_USRSTACK < USRSTACK)
|
LINUX_USRSTACK < USRSTACK)
|
||||||
sstack = LINUX_USRSTACK;
|
sstack = LINUX_USRSTACK;
|
||||||
else
|
else
|
||||||
|
#endif
|
||||||
sstack = USRSTACK;
|
sstack = USRSTACK;
|
||||||
|
|
||||||
if (map != &curproc->p_vmspace->vm_map)
|
if (map != &curproc->p_vmspace->vm_map)
|
||||||
|
|
Loading…
Reference in New Issue