前提

你已经安装了 nasm 编译器

安装

cargo install ospre

使用

ospre kernel=你的内核文件 执行ospre命令后,你将在当前目录下得到一个disk.img文件

Example

ospre kernel=./my_os.elf

使用QEMU调试

qemu-system-x86_64 -m 128M -drive file=./disk.img,index=0,media=disk,format=raw

注意点

只能用cargo install来安装,而不是 cargo add