Use 0xcf9 write for system reset

It's probably the most bulletproof way on modern systems. Old 0x64 writes
does nothing on some systems
This commit is contained in:
Vladimir Serbinenko 2025-02-25 11:22:54 +03:00
parent 0a70170952
commit caf377abcf
2 changed files with 8 additions and 0 deletions

View File

@ -470,6 +470,10 @@ ProcessorIn32:
ret
ProcessorReset:
mov al, 0xe
mov dx, 0xcf9
out dx, al
in al,0x64
test al,2
jne ProcessorReset

View File

@ -780,6 +780,10 @@ MMArchSafeCopy:
ret
ProcessorReset:
mov al, 0xe
mov dx, 0xcf9
out dx, al
in al,0x64
test al,2
jne ProcessorReset