60 likes | 185 Views
Load-Time Relocation. 0. Process 1. Process 6. Process 3. Operating System. ∞. Base & Bound Example. Virtual Address Space. 0. 62. CALL 140. 66. 140. RETURN. SP. 1420. 2000. x86-64 Address Translation. 64-bit Virtual Address. 16. 9. 9. 12. 9. 9. not used. PML4 Table.
E N D
Load-Time Relocation 0 Process 1 Process 6 Process 3 OperatingSystem ∞ CS 140 Lecture Notes: Virtual Memory
Base & Bound Example Virtual AddressSpace 0 62 CALL 140 66 ... 140 ... RETURN SP 1420 2000 CS 140 Lecture Notes: Virtual Memory
x86-64 Address Translation 64-bit Virtual Address 16 9 9 12 9 9 not used PML4 Table Page Directory Pointer Table(PML3) Page Directory(PML2) Page Table 40 12 Page Frame Offset PML4 Base 52-bit Physical Address
Accessing User Memory write(fd, buffer, length) Pages buffer User AddressSpace (Virtual) OS AddressSpace (Physical) CS 140 Lecture Notes: Virtual Memory
OS and User in Same Address Space 0 Code Data Stack OperatingSystem ∞ CS 140 Lecture Notes: Virtual Memory