2025-12-31Genre: POSSEDay 10 was about testing and debugging paging and page table contents.
Running the buildscript should give us the exact same output of repeating letters similar to how it was before paging was implemented.
Then the page table contents were examined. To check about the registers, following command was run on the qemu console.
(qemu) info registers
Then the value of satp register is read and then interpreted by doing the following hexadecimal math:
hex((0x<val of satp> & 0x3fffff) * 4096)
Then the VPN[1] and VPN[0] physical addressed were also examined.
The consequences of forgetting to set the paging mode, specifying physical address instead of physical page number was also seen. qemu logs were also enabled.
A Computer Engineering student who loves FOSS and is learning about privacy, the Internet and languages writing about the things he does.