kernel: don't initialize catch_pagefaults at the extern declaration.

This commit is contained in:
Ben Gras 2010-06-24 12:23:23 +00:00
parent e8d30bba65
commit b3a0a2d86f
2 changed files with 2 additions and 1 deletions

View 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,

View 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;
}