Skip to content

A basic x86_64 OS written in Rust to get a better understanding of low level programming

License

Notifications You must be signed in to change notification settings

Ferryistaken/operating_system

Repository files navigation

Rust Languages Issues Forks Stars License Size Lines

Bare metal program written entirely in rust

This was created to learn about bare metal programming, the x86_64 architecture, and rust in general. Heavily inspired by this

How to run it

Requirements

Here are the required packages:

Rust:

  • rust nightly compiler >= v1.53.0 (run rustup toolchain install nightly)
  • rustup run nightly rustup component add llvm-tools-preview rust-src
  • cargo install bootimage

Operating System:

  • qemu-system-x86_64
  • cargo
  • rustup
rustup run nightly cargo build --release

Now you will have the image under target/x86_64-test_os/debug/bootimage-test_os.bin.
To run in in qemu use this command:

qemu-system-x86_64 -drive format=raw,file=target/x86_64-test_os/debug/bootimage-test_os.bin

About

A basic x86_64 OS written in Rust to get a better understanding of low level programming

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages