Download Page Table Translation Setup
Transcript
Exception Handling //try 2nd hash bl flip_hash //see Section 3.5.7, “Generating the Second Hash Value” b calculate_PTEG2 cont_1sthash2: cmpwi r8, 1 bne populate //see below //if we get here all 16 PTEs are valid, and modified. We need //to flush out the last of these 16 PTEs to (simulated) disk //extract lower PTE lwz r6, 4(r9) //extract real page address (don't know how I can get the effective // or virtual page address since I don't have the hash value). // When we flush, we should translate the real page address to // virutal (effective) address rlwinm r6, r6, 0, 0, 19 //flush page //Now we flush this modified page to disk bl flush_page_to_disk //this depends on system (not implemented) populate: //populate the pte for the new page mr r5, r4 bl populate_pte bl epilog mtlr r17 //turn on translation blr Page Table Translation Setup, Rev. 1 Freescale Semiconductor 21