Fix two off-by-one errors.

This commit is contained in:
mycroft 1994-01-04 00:15:26 +00:00
parent eee671fcc9
commit 608662ce74
2 changed files with 4 additions and 4 deletions

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* 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)
return;
if (va > VM_MAX_KERNEL_ADDRESS)
if (va >= VM_MAX_KERNEL_ADDRESS)
panic("pmap_enter: too big");
/* also, should not muck with PTD va! */

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* 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);
if ((frame.tf_cs&0xffff) != _ucodesel)
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);
frame.tf_eip = 0;
}