From a356425582e51a185fb06b900a34f76d007ee7e0 Mon Sep 17 00:00:00 2001 From: AceVest Date: Sat, 5 Apr 2014 14:25:05 +0800 Subject: [PATCH] fix bug when init_paging --- README.md | 10 ++++++++++ mm/mm.c | 3 ++- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 README.md 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