diff options
Diffstat (limited to 'sys/powerpc')
-rw-r--r-- | sys/powerpc/aim/vm_machdep.c | 8 | ||||
-rw-r--r-- | sys/powerpc/powerpc/vm_machdep.c | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/sys/powerpc/aim/vm_machdep.c b/sys/powerpc/aim/vm_machdep.c index 600819c..e850785 100644 --- a/sys/powerpc/aim/vm_machdep.c +++ b/sys/powerpc/aim/vm_machdep.c @@ -38,7 +38,7 @@ * * from: @(#)vm_machdep.c 7.3 (Berkeley) 5/13/91 * Utah $Hdr: vm_machdep.c 1.16.1.1 89/06/23$ - * $Id: vm_machdep.c,v 1.4 1998/10/15 09:53:27 dfr Exp $ + * $Id: vm_machdep.c,v 1.5 1998/12/04 10:52:47 dfr Exp $ */ /* * Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University. @@ -378,10 +378,10 @@ grow(p, sp) caddr_t v; struct vmspace *vm = p->p_vmspace; - if ((caddr_t)sp <= vm->vm_maxsaddr || sp >= (size_t) USRSTACK) - return (1); + if ((caddr_t)sp <= vm->vm_maxsaddr || sp >= USRSTACK) + return (1); - nss = roundup(USRSTACK - (vm_offset_t)sp, PAGE_SIZE); + nss = roundup(USRSTACK - sp, PAGE_SIZE); if (nss > p->p_rlimit[RLIMIT_STACK].rlim_cur) return (0); diff --git a/sys/powerpc/powerpc/vm_machdep.c b/sys/powerpc/powerpc/vm_machdep.c index 600819c..e850785 100644 --- a/sys/powerpc/powerpc/vm_machdep.c +++ b/sys/powerpc/powerpc/vm_machdep.c @@ -38,7 +38,7 @@ * * from: @(#)vm_machdep.c 7.3 (Berkeley) 5/13/91 * Utah $Hdr: vm_machdep.c 1.16.1.1 89/06/23$ - * $Id: vm_machdep.c,v 1.4 1998/10/15 09:53:27 dfr Exp $ + * $Id: vm_machdep.c,v 1.5 1998/12/04 10:52:47 dfr Exp $ */ /* * Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University. @@ -378,10 +378,10 @@ grow(p, sp) caddr_t v; struct vmspace *vm = p->p_vmspace; - if ((caddr_t)sp <= vm->vm_maxsaddr || sp >= (size_t) USRSTACK) - return (1); + if ((caddr_t)sp <= vm->vm_maxsaddr || sp >= USRSTACK) + return (1); - nss = roundup(USRSTACK - (vm_offset_t)sp, PAGE_SIZE); + nss = roundup(USRSTACK - sp, PAGE_SIZE); if (nss > p->p_rlimit[RLIMIT_STACK].rlim_cur) return (0); |