diff options
author | alc <alc@FreeBSD.org> | 2002-06-25 18:14:38 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2002-06-25 18:14:38 +0000 |
commit | 698aabc22691d8ae63cdb8066bee32e3d6c6ca85 (patch) | |
tree | 360339d488995458f556b03bbf43e41459e88b0c /sys | |
parent | 525ac715e0f33851b0ce46ee62c6b8950ba4d60b (diff) | |
download | FreeBSD-src-698aabc22691d8ae63cdb8066bee32e3d6c6ca85.zip FreeBSD-src-698aabc22691d8ae63cdb8066bee32e3d6c6ca85.tar.gz |
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.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_exec.c | 1 | ||||
-rw-r--r-- | sys/vm/vm_map.h | 10 |
2 files changed, 5 insertions, 6 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c index 79a1dc5..bc773df 100644 --- a/sys/kern/kern_exec.c +++ b/sys/kern/kern_exec.c @@ -273,7 +273,6 @@ interpret: * 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 diff --git a/sys/vm/vm_map.h b/sys/vm/vm_map.h index 9687184..60367ac 100644 --- a/sys/vm/vm_map.h +++ b/sys/vm/vm_map.h @@ -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 */ }; |