o Eliminate vmspace::vm_minsaddr. It's initialized but never used.

o Replace stale comments in vmspace by "const until freed" annotations
   on some fields.
This commit is contained in:
Alan Cox 2002-06-25 18:14:38 +00:00
parent c02ba8a8d2
commit 366838ddfe
2 changed files with 5 additions and 6 deletions

View File

@ -273,7 +273,6 @@ execve(td, uap)
* Copy out strings (args and env) and initialize stack base
*/
stack_base = exec_copyout_strings(imgp);
p->p_vmspace->vm_minsaddr = (char *)stack_base;
/*
* If custom stack fixup routine present for this process

View File

@ -196,8 +196,9 @@ vm_map_pmap(vm_map_t map)
/*
* Shareable process virtual address space.
* May eventually be merged with vm_map.
* Several fields are temporary (text, data stuff).
*
* List of locks
* (c) const until freed
*/
struct vmspace {
struct vm_map vm_map; /* VM address map */
@ -211,10 +212,9 @@ struct vmspace {
segsz_t vm_tsize; /* text size (pages) XXX */
segsz_t vm_dsize; /* data size (pages) XXX */
segsz_t vm_ssize; /* stack size (pages) */
caddr_t vm_taddr; /* user virtual address of text XXX */
caddr_t vm_daddr; /* user virtual address of data XXX */
caddr_t vm_taddr; /* (c) user virtual address of text */
caddr_t vm_daddr; /* (c) user virtual address of data */
caddr_t vm_maxsaddr; /* user VA at max stack growth */
caddr_t vm_minsaddr; /* user VA at max stack growth */
#define vm_endcopy vm_freer
struct proc *vm_freer; /* vm freed on whose behalf */
};