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 filesBit 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.
failing
1 step in 1 ms
1 file changed
+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