Ancient CS 61 Content Warning!!!!!1!!!
This is not the current version of the class.
This site was automatically translated from a wiki. The translation may have introduced mistakes (and the content might have been wrong to begin with).

Answers

A5. 0x0. Index L1PAGEINDEX = 0 in the level-1 page table holds 0x3007. Mask away the flags and look up index L2PAGEINDEX = 0 in the level-2 page table: you’ll get the value 1. The page is present (PTE_P == 1), so no fault. Its address is 0.

A6. 0x100.

A7. None (page fault). The entry at index L2PAGEINDEX = 1 in the L2PAGEINDEX has value 2; (2 & PTE_P) == 0 so the page is not present.

A8. 0x40. The entry at index L2PAGEINDEX = 2 in the level-2 page table has value 3. This is present. It’s not a problem that it maps to the same physical page as L2PAGEINDEX = 0!

A9. Exactly one, the physical page at address 0.

A10. 8192. Virtual addresses 0–0xFFF and 0x2000–0x2FFF are all accessible. It’s true that only 4096 physical addresses are accessible, but each physical address is accessible from two different virtual addresses.