Subject: CVS commit: syssrc
To: None <source-changes@netbsd.org>
From: Simon Burge <simonb@netbsd.org>
List: source-changes
Date: 03/19/2001 04:25:34
Module Name: syssrc
Committed By: simonb
Date: Mon Mar 19 02:25:34 UTC 2001
Modified Files:
syssrc/sys/uvm: uvm_unix.c
Log Message:
In sys_obreak(), the return value of atop() was being used to change
the process dsize for both positive and negative changes. Since atop()
casts its result to a paddr_t (which is unsigned), negative changes in
process data size resulted in unrealistic dsizes being set. Use
"dsize -= atop(-diff)" for a negative diffs. Fixes the "Impossible
process sizes" mentioned on current-users.
Unsigned cast catch and much debugging help from Martin Laubach.
To generate a diff of this commit:
cvs rdiff -r1.19 -r1.20 syssrc/sys/uvm/uvm_unix.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.