Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - Bit-shift the logical address to the right (11 bits) to discard the offset to get the page number. 11 bits since with 2kb pages, byte-addressed, that's 2048 bytes, or 2^11.
- - Use the page number to look up the page in the TLB.
- - If found, take the frame number.
- - Otherwise, look up the page number in the page table.
- - If the valid bit is set, get the frame number and proceed.
- - Otherwise, illegal address, deal with trap.
- - Set the reference bit to 1.
- - Bit-shift the frame number to the left (11 bits) and add the offset to the end of the number to get the physical address.
Advertisement
Add Comment
Please, Sign In to add comment