- Running xv6 on mac m1 processor.
- Adding a System Call in xv6 kernel.
brew install qemu
git clone https://github.com/mit-pdos/xv6-riscv.git
brew tap riscv/riscv
brew install riscv-tools
cd xv6-riscv make clean make
cd xv6-riscv
make qemu
$ls
$iocount
ctrl+A X
- Makefile
- kernel/sysproc.c
- kernel/sysfile.c
- kernel/syscall.c
- kernel/syscall.h
- user/user.h
- user/usys.pl