Skip to content
项目

关于

一个用 Rust 扩展的简单 x86 内核

其他项目

这些数字如何统计

实测星标增长

24小时
+1
7天
+1
15天
+1
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

x86 kernel

a simple x86 kernel, extended with Rust

this is my work following along with a @phil-opp's blog post series "A minimal x86 kernel"

prerequisites

virtualization

(if you are on OSX, ChromeOS, Windows, etc)

linux dependencies

  • nasm: assembler (assembly -> binary)
  • ld: linker (makes binary out of other files)
  • grub: creates the bootable iso
  • xorriso: req'd by grub, filesystem manipulator
  • QEMU: fake-computer emulator

utilities

you don't need these, but they are nice for viewing generated code.

  • hexdump: allows you to view generated binary
  • objdump: a nicer viewer for .o files

up and running

  1. fork and clone this repository

  2. navigate into the repo directory: cd x86-kernel

  3. $ vagrant up

  4. $ vagrant ssh -- -Y -- -Y forwards graphics

  5. $ multirust default nightly-2015-11-19

    Sets your default rust to a stable nightly. The features needed to do OS work in Rust are not yet in a stable release, so you must use a nightly build.

  6. $ cd /vagrant

    The /vagrant directory is the virtualized directory that is synced with the / directory on your HD.

  7. $ make run

探索相关项目

加载中…