vm - /* Initialization function */ void vm_bootstrap(void);...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
#ifndef _VM_H_ #define _VM_H_ #include <machine/vm.h> /* * VM system-related definitions. * * You'll probably want to add stuff here. */ /* Fault-type arguments to vm_fault() */ #define VM_FAULT_READ 0 /* A read was attempted */ #define VM_FAULT_WRITE 1 /* A write was attempted */ #define VM_FAULT_READONLY 2 /* A write to a readonly page was attempted*/
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: /* Initialization function */ void vm_bootstrap(void); /* Fault handling function called by trap code */ int vm_fault(int faulttype, vaddr_t faultaddress); /* Allocate/free kernel heap pages (called by kmalloc/kfree) */ vaddr_t alloc_kpages(int npages); void free_kpages(vaddr_t addr); #endif /* _VM_H_ */...
View Full Document

This note was uploaded on 02/15/2012 for the course CS 153 taught by Professor Brecht during the Spring '12 term at Alabama.

Ask a homework question - tutors are online