Follow these steps to build and run the RustKernel project. Ensure that you have Rust installed on your system. If not, you can install it from rustup.rs.
Make sure you have Rust nightly installed:
rustup override set nightly
To build the project, run:
cargo build
To create a bootable disk image, use the following command:
cargo bootimage
If you don't have QEMU installed, you can install it using Homebrew:
brew install qemu
Finally, to run the disk image on QEMU, use the command:
qemu-system-x86_64 -drive format=raw,file=target/x86_64-RustKernel/debug/bootimage-RustKernel.bin
To run all the tests, use the command:
cargo test
To run the OS in QEMU, use the command:
cargo run