load time relocation
play

Load-Time Relocation Operating System Process 3 Process 6 - PowerPoint PPT Presentation

Load-Time Relocation Operating System Process 3 Process 6 Process 1 0 CS 140 Lecture Notes: Virtual Memory Slide 1 Base & Bounds Example 2000 1420 SP Process Virtual RETURN Address Space 140 66 62 CALL


  1. Load-Time Relocation ∞ Operating System Process 3 Process 6 Process 1 0 CS 140 Lecture Notes: Virtual Memory Slide 1

  2. Base & Bounds Example 2000 1420 SP Process Virtual RETURN Address … Space … 140 … 66 62 CALL 140 0 CS 140 Lecture Notes: Virtual Memory Slide 2

  3. x86-64 Address Translation 64-bit Virtual Address 16 9 9 9 9 12 PML1 (Page Table) PML2 (Page Directory) PML3 (Page Directory Pointer Table) PML4 40 12 Page Frame Offset PML4 Base 52-bit Physical Address CS 140 Lecture Notes: Virtual Memory Slide 3

  4. Accessing User Memory write(fd, buffer, length) Pages User Address OS Address Space (Virtual) Space (Physical) CS 140 Lecture Notes: Virtual Memory Slide 4

  5. OS and User in Same Address Space ∞ Operating System Stack Data Code 0 CS 140 Lecture Notes: Virtual Memory Slide 5

Recommend


More recommend