For Lite2: proc LIST changes.

Reviewed by:	david & bde
This commit is contained in:
Jeffrey Hsu 1996-03-11 05:55:56 +00:00
parent 70b012cab2
commit 6ad138306c
3 changed files with 11 additions and 11 deletions

View File

@ -39,7 +39,7 @@
* SUCH DAMAGE.
*
* from: @(#)pmap.c 7.7 (Berkeley) 5/12/91
* $Id: pmap.c,v 1.77 1996/02/25 05:08:57 dyson Exp $
* $Id: pmap.c,v 1.79 1996/03/10 23:06:00 dyson Exp $
*/
/*
@ -641,7 +641,7 @@ pmap_growkernel(vm_offset_t addr)
pdir_pde(PTD, kernel_vm_end) = (pd_entry_t) (VM_PAGE_TO_PHYS(nkpg) | PG_V | PG_KW);
nkpg = NULL;
for (p = (struct proc *) allproc; p != NULL; p = p->p_next) {
for (p = allproc.lh_first; p != 0; p = p->p_list.le_next) {
if (p->p_vmspace) {
pmap = &p->p_vmspace->vm_pmap;
*pmap_pde(pmap, kernel_vm_end) = pdir_pde(PTD, kernel_vm_end);
@ -2221,7 +2221,7 @@ pmap_pid_dump(int pid) {
struct proc *p;
int npte = 0;
int index;
for (p = (struct proc *) allproc; p != NULL; p = p->p_next) {
for (p = allproc.lh_first; p != NULL; p = p->p_list.le_next) {
if (p->p_pid != pid)
continue;

View File

@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: db_ps.c,v 1.9 1995/12/07 12:44:56 davidg Exp $
* $Id: db_ps.c,v 1.10 1995/12/10 19:08:08 bde Exp $
*/
#include <sys/param.h>
#include <sys/systm.h>
@ -53,8 +53,8 @@ db_ps(dummy1, dummy2, dummy3, dummy4)
np = nprocs;
if (allproc != NULL)
p = allproc;
if (allproc.lh_first != NULL)
p = allproc.lh_first;
else
p = &proc0;
@ -98,8 +98,8 @@ db_ps(dummy1, dummy2, dummy3, dummy4)
}
db_printf(" %s\n", p->p_comm ? p->p_comm : "");
p = p->p_next;
p = p->p_list.le_next;
if (p == NULL && np > 0)
p = zombproc;
p = zombproc.lh_first;
}
}

View File

@ -39,7 +39,7 @@
* SUCH DAMAGE.
*
* from: @(#)pmap.c 7.7 (Berkeley) 5/12/91
* $Id: pmap.c,v 1.77 1996/02/25 05:08:57 dyson Exp $
* $Id: pmap.c,v 1.79 1996/03/10 23:06:00 dyson Exp $
*/
/*
@ -641,7 +641,7 @@ pmap_growkernel(vm_offset_t addr)
pdir_pde(PTD, kernel_vm_end) = (pd_entry_t) (VM_PAGE_TO_PHYS(nkpg) | PG_V | PG_KW);
nkpg = NULL;
for (p = (struct proc *) allproc; p != NULL; p = p->p_next) {
for (p = allproc.lh_first; p != 0; p = p->p_list.le_next) {
if (p->p_vmspace) {
pmap = &p->p_vmspace->vm_pmap;
*pmap_pde(pmap, kernel_vm_end) = pdir_pde(PTD, kernel_vm_end);
@ -2221,7 +2221,7 @@ pmap_pid_dump(int pid) {
struct proc *p;
int npte = 0;
int index;
for (p = (struct proc *) allproc; p != NULL; p = p->p_next) {
for (p = allproc.lh_first; p != NULL; p = p->p_list.le_next) {
if (p->p_pid != pid)
continue;