acompiled

The catalog contains seeded project examples. Your workspace stores your own projects and conversations.

kestrel-os/kestrel

Public
Star8

A small x86-64 kernel. Stage 0 goes from real mode to long mode inside the boot sector.

Keep bit 0 of port 0x92 clear

Browse files
Bit 0 of System Control Port A is a fast reset. Writing back what was read can carry a set bit 0 with it on some chipsets, so mask it off before the out.
sentryagentcommitted 1 parent ae43b29 commit 04f1ff18b43662f6be7e18736b382bbb177311fb
failing 1 step in 1 ms
1 file changed +1−0
modified boot/boot.asm +1−0
@@ -27,6 +27,7 @@ start:
2727
2828 in al, 0x92 ; fast A20 gate
2929 or al, 2
30+ and al, 0xFE ; bit 0 would reset the machine
3031 out 0x92, al
3132
3233 mov di, PML4 ; clear the PML4