Skip to content

ShashiKiranMR/xv6-mac-m1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xv6-mac-m1

  • Running xv6 on mac m1 processor.
  • Adding a System Call in xv6 kernel.

Setup

Install qemu

brew install qemu

Download xv6 (risc-v) version of code from github

git clone https://github.com/mit-pdos/xv6-riscv.git

Install RISC-V Compiler toolchain

brew tap riscv/riscv
brew install riscv-tools

Compile and build xv6

cd xv6-riscv make clean make

Running xv6

To start xv6 on qemu and run commands

cd xv6-riscv
make qemu
$ls
$iocount

To exit from xv6 terminal

ctrl+A X

Changes made to xv6 code

Added a system call getiocount() in the xv6 kernel

Files modified:

  • Makefile
  • kernel/sysproc.c
  • kernel/sysfile.c
  • kernel/syscall.c
  • kernel/syscall.h
  • user/user.h
  • user/usys.pl

About

Running xv6 on mac m1 processor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published