*BSD News Article 24604


Return to BSD News archive

Newsgroups: comp.os.386bsd.development
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!headwall.Stanford.EDU!kithrup.com!sef
From: sef@kithrup.com (Sean Eric Fagan)
Subject: minor patch to my ptrace replacement
Organization: Kithrup Enterprises, Ltd.
Message-ID: <CHDnMo.5qt@kithrup.com>
Date: Wed, 1 Dec 1993 22:25:22 GMT
Lines: 45

This has never bitten me, but someone (whose name I forget, but I do
thank) pointed out it was wrong.  He was right, so here is a fix.
(Basicly, the kernel's address of the temporary page gets set by
one of the vm* routines, so I didn't bother initializing it, but it
does get checked by the vm* routine before it sets it, so it should be
initialized.  Zero seems a reasonable value.)  (Oh, and if whomever-
you-are is reading this, I apologise for snapping; you managed to catch
me at two *very* bad times in a basicly dreary day...)

*** sys_process.c.~47~	Sat Sep  4 01:43:56 1993
--- sys_process.c	Wed Dec  1 12:05:34 1993
***************
*** 86,92 ****
  	int		rv;
  	vm_map_t	map, tmap;
  	vm_object_t	object;
! 	vm_offset_t	kva;
  	int		page_offset;	/* offset into page */
  	vm_offset_t	pageno;		/* page number */
  	vm_map_entry_t	out_entry;
--- 86,92 ----
  	int		rv;
  	vm_map_t	map, tmap;
  	vm_object_t	object;
! 	vm_offset_t	kva = 0;
  	int		page_offset;	/* offset into page */
  	vm_offset_t	pageno;		/* page number */
  	vm_map_entry_t	out_entry;
***************
*** 132,138 ****
  	int		rv;
  	vm_map_t	map, tmap;
  	vm_object_t	object;
! 	vm_offset_t	kva;
  	int		page_offset;	/* offset into page */
  	vm_offset_t	pageno;		/* page number */
  	vm_map_entry_t	out_entry;
--- 132,138 ----
  	int		rv;
  	vm_map_t	map, tmap;
  	vm_object_t	object;
! 	vm_offset_t	kva = 0;
  	int		page_offset;	/* offset into page */
  	vm_offset_t	pageno;		/* page number */
  	vm_map_entry_t	out_entry;