From: AceVest Date: Sat, 5 Apr 2014 06:25:05 +0000 (+0800) Subject: fix bug when init_paging X-Git-Tag: 0.3.0~88 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/migration-4to9?a=commitdiff_plain;h=a356425582e51a185fb06b900a34f76d007ee7e0;p=kernel.git fix bug when init_paging --- diff --git a/README.md b/README.md new file mode 100644 index 0000000..19ba022 --- /dev/null +++ b/README.md @@ -0,0 +1,10 @@ +kernel +====== + +I can't find a satisfactory name for my kernel. + +### HOW TO GET THE LATEST SOURCECODE? + git clone https://github.com/acevest/kernel +### WHEN DID YOU START TO DO THIS WORK? + Maybe 2006.12 +### HOW TO COMPILE THIS KERNEL? diff --git a/mm/mm.c b/mm/mm.c index 91c8a08..544f336 100644 --- a/mm/mm.c +++ b/mm/mm.c @@ -313,7 +313,7 @@ void init_paging() unsigned long pt_addr = (unsigned long) va2pa(bootmem_alloc_pages(1)); *pde = pt_addr | 7; - *(pde + (PAGE_OFFSET>>20)) = *pde; // for kernel paging + *(pde + (PAGE_OFFSET>>22)) = *pde; // for kernel paging for(ti=0; ti