kern

diff src/mem.c @ 23:5454cee245a3

- fixed tragic mistake in the initial kernel image mapping - page table modifications by disabling paging first - page allocation completed
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 04 Apr 2011 23:34:06 +0300
parents 3ba93d8f586c
children 9939a6d7a45a
line diff
     1.1 --- a/src/mem.c	Sun Apr 03 18:42:19 2011 +0300
     1.2 +++ b/src/mem.c	Mon Apr 04 23:34:06 2011 +0300
     1.3 @@ -185,7 +185,7 @@
     1.4  		uint32_t e = (uint32_t)bitmap + bmsize;
     1.5  
     1.6  		if(e & PGOFFS_MASK) {
     1.7 -			*end = (e + 4096) & PGOFFS_MASK;
     1.8 +			*end = (e + 4096) & ~PGOFFS_MASK;
     1.9  		} else {
    1.10  			*end = e;
    1.11  		}