diff --git a/sys/miscfs/procfs/procfs_linux.c b/sys/miscfs/procfs/procfs_linux.c index a4a0d31dd570..39cef3357462 100644 --- a/sys/miscfs/procfs/procfs_linux.c +++ b/sys/miscfs/procfs/procfs_linux.c @@ -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 -__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 #include @@ -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);