From: Ben Gras Date: Thu, 24 Jun 2010 12:23:23 +0000 (+0000) Subject: kernel: don't initialize catch_pagefaults at the extern declaration. X-Git-Tag: v3.1.8~365 X-Git-Url: http://zhaoyanbai.com/repos/Bv9ARM.ch10.html?a=commitdiff_plain;h=b3a0a2d86fefc9bd78eda6e0b7a7c9ea9f393ed4;p=minix.git kernel: don't initialize catch_pagefaults at the extern declaration. --- diff --git a/kernel/arch/i386/exception.c b/kernel/arch/i386/exception.c index eed02883e..dfbdbd383 100644 --- a/kernel/arch/i386/exception.c +++ b/kernel/arch/i386/exception.c @@ -12,7 +12,7 @@ #include "kernel/proto.h" #include -extern int catch_pagefaults = 0; +extern int catch_pagefaults; PRIVATE void pagefault( struct proc *pr, struct exception_frame * frame, diff --git a/kernel/arch/i386/memory.c b/kernel/arch/i386/memory.c index 4f11d9e80..cdff15981 100644 --- a/kernel/arch/i386/memory.c +++ b/kernel/arch/i386/memory.c @@ -62,6 +62,7 @@ PUBLIC void vm_init(struct proc *newptproc) write_cr3(0); switch_address_space(newptproc); assert(ptproc == newptproc); + catch_pagefaults = 0; vm_enable_paging(); vm_running = 1; }