lab 3 overview - Lab 3.0: Overview David Lie ECE344...

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

View Full Document Right Arrow Icon
1 Lab 3.0: 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 Primer Look at kern/arch/mips/include/tlb.h: – Description of the TLB interface Understand memory layout of MIPS – Look at kern/arch/mips/include/vm.h – KUSEG: user programs – KSEG0: kernel – All virtual addresses • Addresses in KUSEG are mapped via TLB • Addresses at KSEG0 are mapped to physical address 0x00000000, • i.e. KSEG0 addresses = PADDR + 0x8000000 • Macro in os161 helps with this conversion KUSEG KSEG0 0x8000000 0xc000000
Background image of page 2
3 ECE344: Operating Systems Understanding dumbvm Understand the page allocator functions – What does ram_stealmem do? Understand the as_* functions – As_define_region: create a region (code, data, heap, etc…) – As_define_stack: create stack region, initialize stack to point to top of region – As_active: make current region the active one
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 Setting up the Coremap Allocation for the coremap must be outside of the region of memory used to satisfy requests for memory from the rest of the kernel: – Need to modify getppages to use ram_stealmem until locks and space for coremap are done initialization. – Once coremap is setup, then change getppages, free_kpages to use coremap instead of ram_stealmem Note that getppages can be asked to get multiple pages, but free_kpages doesn’t take a parameter to say how many pages
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

This document was uploaded on 02/20/2012.

Page1 / 12

lab 3 overview - Lab 3.0: Overview David Lie ECE344...

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

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