mirror of https://gitlab.com/nakst/essence
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:
parent
0a70170952
commit
caf377abcf
|
@ -470,6 +470,10 @@ ProcessorIn32:
|
|||
ret
|
||||
|
||||
ProcessorReset:
|
||||
mov al, 0xe
|
||||
mov dx, 0xcf9
|
||||
out dx, al
|
||||
|
||||
in al,0x64
|
||||
test al,2
|
||||
jne ProcessorReset
|
||||
|
|
|
@ -780,6 +780,10 @@ MMArchSafeCopy:
|
|||
ret
|
||||
|
||||
ProcessorReset:
|
||||
mov al, 0xe
|
||||
mov dx, 0xcf9
|
||||
out dx, al
|
||||
|
||||
in al,0x64
|
||||
test al,2
|
||||
jne ProcessorReset
|
||||
|
|
Loading…
Reference in New Issue