q4 (1) Computer Structures

Regsxp userregsxp 4 tlbmisshandler is called by an

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

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: p[VPN]; TLBEnter(vpn, ppn); User.Regs[XP] = User.Regs[XP]-4; } } TLBMissHandler is called by an assembly-language stub when a TLB miss interrupt is taken, and is passed the virtual page number from the memory reference which caused the miss. Note that the handler calls OS kernel procedures NonResident (to determine if a page is resident), PageFault (to handle a page fault), and TLBEnter (to enter a new <VPN/PPN> pair into the TLB). (D) (1 point): Exactly one of the procedures called in the above handler calls Scheduler(). Which is it? circle one: NonResident … PageFault … TLBEnter (E) (1 point): Exactly one of the procedures called in the above handler does not access the pagemap stored in main memory. Which is it? circle one: NonResident … PageFault … TLBEnter (F) (1 point): An application tries to read virtual location 0x100, and the access causes a TLB miss. During which, if any, of the procedure calls does the actual read of virtual location 0x100 happen? circle one: NonResident … PageFault … TLBEnter … NONE Upset by the performance cost of assuming every page to be dirty, Gill has his engineers add a Dirty...
View Full Document

This document was uploaded on 02/27/2014 for the course COMSCI 6.004 at MIT.

Ask a homework question - tutors are online