return a page less than the actual top of stack so that linux-java works.

This commit is contained in:
christos 2007-04-01 03:16:44 +00:00
parent abe5cdbc17
commit 6a4825167b
1 changed files with 9 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: procfs_linux.c,v 1.33 2007/03/09 14:11:23 ad Exp $ */
/* $NetBSD: procfs_linux.c,v 1.34 2007/04/01 03:16:44 christos Exp $ */
/*
* Copyright (c) 2001 Wasabi Systems, Inc.
@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: procfs_linux.c,v 1.33 2007/03/09 14:11:23 ad Exp $");
__KERNEL_RCSID(0, "$NetBSD: procfs_linux.c,v 1.34 2007/04/01 03:16:44 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -217,6 +217,13 @@ procfs_do_pid_stat(struct lwp *curl, struct lwp *l,
#endif
sstack = (unsigned long) USRSTACK;
/*
* jdk 1.6 compares low <= addr && addr < high
* if we put addr == high, then the test fails
* so eat one page.
*/
sstack -= PAGE_SIZE;
vm_map_unlock_read(map);
uvmspace_free(vm);