1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-13 10:02:38 +00:00

Use kvm_uread instead of kvm_read to access the upages.

This commit is contained in:
David Greenman 1994-10-18 04:27:46 +00:00
parent 2d8f106204
commit 0ec663d53a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=3686

View File

@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: ps.c,v 1.3 1994/10/02 08:19:13 davidg Exp $
* $Id: ps.c,v 1.4 1994/10/02 08:33:31 davidg Exp $
*/
#ifndef lint
@ -381,9 +381,10 @@ saveuser(ki)
{
struct pstats pstats;
struct usave *usp;
struct user *u_addr = (struct user *)USRSTACK;
usp = &ki->ki_u;
if (kvm_read(kd, (u_long)&KI_PROC(ki)->p_addr->u_stats,
if (kvm_uread(kd, KI_PROC(ki), &u_addr->u_stats,
(char *)&pstats, sizeof(pstats)) == sizeof(pstats)) {
/*
* The u-area might be swapped out, and we can't get