In some hp300-derived pmaps, in pmap_page_protect(), don't walk off the
end of the list of physical->virtual entires into NULL space if the last entry is (mysteriously) wired in the pmap. Add a DEBUG printf on alpha.
This commit is contained in:
parent
480445c035
commit
3a83745247
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pmap.old.c,v 1.29 1998/01/29 05:44:57 ross Exp $ */
|
||||
/* $NetBSD: pmap.old.c,v 1.30 1998/01/31 01:32:55 ross Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1991, 1993
|
||||
|
@ -98,7 +98,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: pmap.old.c,v 1.29 1998/01/29 05:44:57 ross Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: pmap.old.c,v 1.30 1998/01/31 01:32:55 ross Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -882,10 +882,15 @@ pmap_page_protect(pa, prot)
|
|||
else {
|
||||
pv = pv->pv_next;
|
||||
#ifdef DEBUG
|
||||
if (pmapdebug & PDB_PARANOIA)
|
||||
if (pmapdebug & PDB_PARANOIA) {
|
||||
printf("%s wired mapping for %lx not removed\n",
|
||||
"pmap_page_protect:", pa);
|
||||
printf("vm wire count %d\n",
|
||||
PHYS_TO_VM_PAGE(pa)->wire_count);
|
||||
}
|
||||
#endif
|
||||
if (pv == NULL)
|
||||
break;
|
||||
}
|
||||
}
|
||||
splx(s);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pmap.c,v 1.39 1998/01/06 07:03:04 thorpej Exp $ */
|
||||
/* $NetBSD: pmap.c,v 1.40 1998/01/31 01:32:59 ross Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1991, 1993
|
||||
|
@ -1000,6 +1000,8 @@ pmap_page_protect(pa, prot)
|
|||
printf("%s wired mapping for %lx not removed\n",
|
||||
"pmap_page_protect:", pa);
|
||||
#endif
|
||||
if (pv == NULL)
|
||||
break;
|
||||
}
|
||||
}
|
||||
splx(s);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pmap.c,v 1.35 1998/01/06 07:03:07 thorpej Exp $ */
|
||||
/* $NetBSD: pmap.c,v 1.36 1998/01/31 01:33:02 ross Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1991, 1993
|
||||
|
@ -934,6 +934,8 @@ pmap_page_protect(pa, prot)
|
|||
printf("%s wired mapping for %lx not removed\n",
|
||||
"pmap_page_protect:", pa);
|
||||
#endif
|
||||
if (pv == NULL)
|
||||
break;
|
||||
}
|
||||
}
|
||||
splx(s);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pmap.c,v 1.11 1998/01/06 07:03:11 thorpej Exp $ */
|
||||
/* $NetBSD: pmap.c,v 1.12 1998/01/31 01:33:04 ross Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1991, 1993
|
||||
|
@ -1097,6 +1097,8 @@ pmap_page_protect(pa, prot)
|
|||
printf("%s wired mapping for %x not removed\n",
|
||||
"pmap_page_protect:", pa);
|
||||
#endif
|
||||
if (pv == NULL)
|
||||
break;
|
||||
}
|
||||
}
|
||||
splx(s);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pmap.c,v 1.14 1998/01/06 07:03:14 thorpej Exp $ */
|
||||
/* $NetBSD: pmap.c,v 1.15 1998/01/31 01:33:06 ross Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1991, 1993
|
||||
|
@ -1035,6 +1035,8 @@ pmap_page_protect(pa, prot)
|
|||
printf("%s wired mapping for %lx not removed\n",
|
||||
"pmap_page_protect:", pa);
|
||||
#endif
|
||||
if (pv == NULL)
|
||||
break;
|
||||
}
|
||||
}
|
||||
splx(s);
|
||||
|
|
Loading…
Reference in New Issue