lab 3.1 overview - Lab 3.1: Overview David Lie ECE344...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
1 Lab 3.1: Overview David Lie ECE344 University of Toronto
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 ECE344: Operating Systems Tasks Major Task: – Implement as_copy() so you can support fork() Minor Task – Implement sbrk()
Background image of page 2
3 ECE344: Operating Systems Implementing as_copy() As_copy() in dumbvm just does a keep copy of the address space struct: – Address space struct should store: • Ranges for text, data, stack and heap regions • Pointer to page table for address space – What happens if you do a keep copy of the address space struct in your current implementation?
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
4 ECE344: Operating Systems Implementing Copy-On-Write When you copy the page table, for each page table entry you copy: – Set to read-only – Increment the reference count to all physical frames for which you are creating a new virtual mapping
Background image of page 4
5 ECE344: Operating Systems Modifying the TLB Miss Handler You must add a new path in the TLB miss handler to handle faults to copy-on-write pages: – Check the “faulttype” argument to see if it is
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 9

lab 3.1 overview - Lab 3.1: Overview David Lie ECE344...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online