some very important text or definition
code/registers - monospace text in xv6
text important for context, or generally adding some good to know stuff
start of concept / pojem po Slovensky
generally less or equal importance as green text
Chapter 3.1 - Paging hardware
VA - virtual address | PA - physical address
- RISC-V page table → maps VAs to PAs
- XV6 runs on SV39 RISC-V
- the bottom 39 bits of 64 bit VA are used
- the top 25 bits aren’t used
RISC-V Page table
- array of 2^27 page table entries - PTEs
- each PTE contains some flags and a 44 bit Physical page number - PPN
- gives the operating system control over VA to PA translation of 4096 bytes → page
Translation of a VA to PA simplified
- paging HW translates a VA using the top 27 bits of the 39 bits to index into the PT to find the PTE
- this makes a 56 bit PA whose top 44 bits come from PPN in the PTE and the bottom 12 bits are copied from the original VA (simple → fig 3.1 | real → fig 3.2)

Translation of a VA to PA in reality