Fix two off-by-one errors.
This commit is contained in:
parent
eee671fcc9
commit
608662ce74
|
@ -36,7 +36,7 @@
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* from: @(#)pmap.c 7.7 (Berkeley) 5/12/91
|
* from: @(#)pmap.c 7.7 (Berkeley) 5/12/91
|
||||||
* $Id: pmap.c,v 1.11 1993/12/15 14:47:38 mycroft Exp $
|
* $Id: pmap.c,v 1.12 1994/01/04 00:15:26 mycroft Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -799,7 +799,7 @@ pmap_enter(pmap, va, pa, prot, wired)
|
||||||
if (pmap == NULL)
|
if (pmap == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (va > VM_MAX_KERNEL_ADDRESS)
|
if (va >= VM_MAX_KERNEL_ADDRESS)
|
||||||
panic("pmap_enter: too big");
|
panic("pmap_enter: too big");
|
||||||
/* also, should not muck with PTD va! */
|
/* also, should not muck with PTD va! */
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* from: @(#)trap.c 7.4 (Berkeley) 5/13/91
|
* from: @(#)trap.c 7.4 (Berkeley) 5/13/91
|
||||||
* $Id: trap.c,v 1.22 1994/01/03 16:21:54 mycroft Exp $
|
* $Id: trap.c,v 1.23 1994/01/04 00:15:28 mycroft Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -537,7 +537,7 @@ done:
|
||||||
printf("ss %x call %d\n", frame.tf_ss, code);
|
printf("ss %x call %d\n", frame.tf_ss, code);
|
||||||
if ((frame.tf_cs&0xffff) != _ucodesel)
|
if ((frame.tf_cs&0xffff) != _ucodesel)
|
||||||
printf("cs %x call %d\n", frame.tf_cs, code);
|
printf("cs %x call %d\n", frame.tf_cs, code);
|
||||||
if (frame.tf_eip > VM_MAXUSER_ADDRESS) {
|
if (frame.tf_eip >= VM_MAXUSER_ADDRESS) {
|
||||||
printf("eip %x call %d\n", frame.tf_eip, code);
|
printf("eip %x call %d\n", frame.tf_eip, code);
|
||||||
frame.tf_eip = 0;
|
frame.tf_eip = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue