- Inside Init_VM() (defined in paging.c) insert a call to checkPaging() before and after you call Enable_Paging(). So your code should look like:
Paging on?: 0 Paging on?: 1
- Finally, when bochs starts up, nothing should crash and the shell prompt should come up as usual. You should be able to run user mode executables like they used to run when paging wasn't enabled. We'll test by checking the shell and running an user mode program (e.g. b.exe). We will also check the code to make sure you have enabled paging.
Paging on?: 0 Paging on?: 1when bochs starts up. Nothing should crash and the shell prompt should come up. Enabling paging is worth 27 points.
/c/rec.exe 300should output
300 349 348 ... 1 %Correct implementation is worth 27 points.
/c/rec.exe 3300should output
3300 3299 3298 ... 1 %Correct implementation is worth 36 points.