mirror of
https://github.com/ossu/computer-science.git
synced 2024-10-01 01:26:01 -04:00
14 lines
1.0 KiB
Markdown
14 lines
1.0 KiB
Markdown
Credit goes to [palladian](https://github.com/palladian1)
|
|
|
|
## Intro To xv6 Virtual Memory
|
|
|
|
### WARNING:
|
|
|
|
***The project doesn't match the currently available xv6 source code, which already has this project implemented in it!***
|
|
|
|
[palladian](https://github.com/palladian1) tracked down a different xv6 source from the Github page of a U of Wisconsin student. We had to edit the `Makefile` to find the QEMU executable correctly. We added `null.c` to the `user` folder (also edited `makefile.mk` there), which demonstrates the lack of memory safety.
|
|
|
|
Start with the code in [`start.zip`](https://github.com/spamegg1/reviews/raw/master/courses/OSTEP/ostep-projects/vm-xv6-intro/start.zip). Extract it and run `make clean` and `make qemu-nox`. Then inside the xv6 system run `null` to see the lack of safety! If you want to compare the results of `null` with the actual machine code, you can run `objdump -d user/null.o`.
|
|
|
|
You might have to manually run `make clean` and `make qemu-nox` every time you make a change to the code.
|