kernel: don't initialize catch_pagefaults at the extern declaration.
This commit is contained in:
		
							parent
							
								
									e8d30bba65
								
							
						
					
					
						commit
						b3a0a2d86f
					
				@ -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,
 | 
			
		||||
 | 
			
		||||
@ -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;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user