]> Zhao Yanbai Git Server - minix.git/commitdiff
kernel: don't initialize catch_pagefaults at the extern declaration.
authorBen Gras <ben@minix3.org>
Thu, 24 Jun 2010 12:23:23 +0000 (12:23 +0000)
committerBen Gras <ben@minix3.org>
Thu, 24 Jun 2010 12:23:23 +0000 (12:23 +0000)
kernel/arch/i386/exception.c
kernel/arch/i386/memory.c

index eed02883e8dcb4b01893c854c390c61bcb44ef2a..dfbdbd383630e755d4ed0a1f47dcc4657b04924c 100644 (file)
@@ -12,7 +12,7 @@
 #include "kernel/proto.h"
 #include <machine/vm.h>
 
-extern int catch_pagefaults = 0;
+extern int catch_pagefaults;
 
 PRIVATE void pagefault( struct proc *pr,
                        struct exception_frame * frame,
index 4f11d9e80e98e31b401d4adbdcd2caa1138deb8e..cdff159813ec3c7ec8738184e72f15228263b991 100644 (file)
@@ -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;
 }