enter protected mode and jump to rust binary
This commit is contained in:
1 parent
e20030fbc3
commit
a86d73e6ee
4 files changed
+343
-13
No files matched your search
@@ -1,13 +1,17 @@
|
||||
run:
|
||||
qemu-system-x86_64 \
|
||||
-monitor stdio \
|
||||
-d int \
|
||||
-no-reboot \
|
||||
-bios seabios/out/bios.bin \
|
||||
-m 512M \
|
||||
-drive format=raw,file=disk.bin
|
||||
|
||||
|
||||
build:
|
||||
nasm -f bin -Iinclude -o boot0.bin boot0.s
|
||||
nasm -f bin -Iinclude -o boot1.bin boot1.s
|
||||
cd boot1; cargo build --release
|
||||
# nasm -f bin -Iinclude -o boot1.bin boot1.s
|
||||
|
||||
zero_disk:
|
||||
dd if=/dev/zero of=disk.bin bs=512 count=1000
|
||||
@@ -33,4 +37,5 @@ write_stage1:
|
||||
dd if=boot0.bin of=disk.bin conv=notrunc
|
||||
|
||||
write_stage2:
|
||||
dd if=boot1.bin of=disk.bin bs=512 seek=70 conv=notrunc
|
||||
# dd if=boot1.bin of=disk.bin bs=512 seek=70 conv=notrunc
|
||||
dd if=boot1/target/target_protected/release/boot1 of=disk.bin bs=512 seek=70 conv=notrunc
|
||||
Reference in new issue
Block a user