Skip to content

CSC525-WCU/xv6-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xv6-rust

This is a project to port the popular 32-bit learner's OS, xv6, over to the Rust programming language. This project is forked from the original work by connerkuehl.

The original work is a read-only repo dated back in 2019. Evan Older (CSC525 Fall 2021) provided the corrected version of Cargo dependencies to make the project runs.

One of the motivating academic factors behind this project (which has played a huge role in making this project possible for school credit) is assessing Rust's viability as a low level systems language.

Building and Running

Prerequisites:

  1. A linux environment.

  2. The QEMU simulator.

  3. The gcc compiler suite.

  4. The Rust compiler.

  5. cargo-xbuild (cargo install cargo-xbuild).

  6. A nightly override for the cloned repository (rustup override set nightly).

  7. The Rust source (rustup component add rust-src).

Building:

  1. Run make.

Running:

  1. Run make run.
  2. To quit, first hit Ctrl-A, then C to get to qemu's terminal. Type quit and hit Enter to quit.

Debugging:

  1. Run make debug; QEMU will expose a debugging port for GDB to attach to.

  2. In another terminal session, run rust-gdb.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published