From fa2de1d5313d334f267c153900302e189906e2fb Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Wed, 20 Sep 2000 00:00:00 +0000 Subject: [PATCH] Plan 9 from Bell Labs 2000-09-20 --- bitsy/mmu.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bitsy/mmu.c b/bitsy/mmu.c index 58048cbda02867ecde80bd4841046e63683cfdaa..c67f59d902fe25069a354307721e9e9031ede2d5 100644 --- a/bitsy/mmu.c +++ b/bitsy/mmu.c @@ -91,7 +91,7 @@ mmuinit(void) } /* - * map special use space + * map special use space */ ulong* mapspecial(ulong physaddr, int len) @@ -110,8 +110,9 @@ mapspecial(ulong physaddr, int len) } t = (ulong*)(l1table[virtaddr>>20] & L1PTBaseMask); for(i = 0; i < OneMeg; i += BY2PG){ - if((t[virtaddr>>20] & L2TypeMask) != L2SmallPage) + if((t[(virtaddr+i)>>20] & L2TypeMask) != L2SmallPage) break; + } if(i < OneMeg){ virtaddr += i; @@ -119,8 +120,7 @@ mapspecial(ulong physaddr, int len) } } - /* we get here if no entry was found mapping this physical address */ - + /* we get here if no entry was found mapping this physical range */ } void