From: AceVest Date: Fri, 18 Jul 2014 16:27:37 +0000 (+0800) Subject: fix bug in do_no_page X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/migration?a=commitdiff_plain;h=79e15b3fdc6e613756127e3c1d5d76fc408285e9;p=kernel.git fix bug in do_no_page --- diff --git a/mm/page.c b/mm/page.c index ab4d8d9..8037c17 100644 --- a/mm/page.c +++ b/mm/page.c @@ -17,11 +17,12 @@ #include #include -void do_no_page(void *addr) +void do_no_page(void *addr) { pde_t *pde = (pde_t *)current->cr3; pte_t *pte; unsigned long page = alloc_one_page(0); + page = va2pa(page); if(page == 0) panic("failed alloc page");