addrspace - #ifndef _ADDRSPACE_H_ #define _ADDRSPACE_H_...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
#ifndef _ADDRSPACE_H_ #define _ADDRSPACE_H_ #include <vm.h> #include "opt-dumbvm.h" struct vnode; /* * Address space - data structure associated with the virtual memory * space of a process. * * You write this. */ struct addrspace { #if OPT_DUMBVM vaddr_t as_vbase1; paddr_t as_pbase1; size_t as_npages1; vaddr_t as_vbase2; paddr_t as_pbase2; size_t as_npages2; paddr_t as_stackpbase; #else /* Put stuff here for your VM system */ #endif }; /* * Functions in addrspace.c: * * as_create - create a new empty address space. You need to make * sure this gets called in all the right places. You * may find you want to change the argument list. May * return NULL on out-of-memory error. * * as_copy - create a new address space that is an exact copy of * an old one. Probably calls as_create to get a new * empty address space and fill it in, but that's up to * you. * * as_activate - make the specified address space the one currently * "seen" by the processor. Argument might be NULL, * meaning "no particular address space".
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the 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.

Page1 / 2

addrspace - #ifndef _ADDRSPACE_H_ #define _ADDRSPACE_H_...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online