~vdupras/duskbsd-qemu

6dd89c49c48b2deef71fcafe0ba0214aa1b2029c — Virgil Dupras 8 months ago d385768
Automatically find QEMU boot device
3 files changed, 1 insertions(+), 22 deletions(-)

M README.md
D kexec.asm
M usr/src/sys
M README.md => README.md +0 -4
@@ 29,10 29,6 @@ built by including Dusk OS as a git submodule.

`make run` should do the whole thing and launch QEMU with the kernel running.

At the moment, the stub bootloader doesn't tell DuskBSD about its boot drive,
so the kernel has to prompt of a drive to use. When you're prompted, type `wd0`
and then the default answers for the rest.

[duskbsd]: https://git.sr.ht/~vdupras/duskbsd
[duskos]: https://git.sr.ht/~vdupras/duskos
[mtools]: https://www.gnu.org/software/mtools/

D kexec.asm => kexec.asm +0 -17
@@ 1,17 0,0 @@
ORG 0xc0430000 ; KEXECADDR
BITS 32
pop eax
pop eax
mov ebx, [eax]
mov [emit], ebx
mov ebx, [eax+4]
mov [key], ebx
push 0x58 ; 'X'
call [emit]
pop eax ; 'X'
call [key]
push eax ; typed key
call [emit]
forever: jmp forever
emit: dd 0	; void emit(int c)
key: dd 0	; int key()

M usr/src/sys => usr/src/sys +1 -1
@@ 1,1 1,1 @@
Subproject commit ccd15485f84b6c66ac793f6a3886683e24f446df
Subproject commit 7d5f4f577db370b53bbe52ad929a5caff3bdcba3