mirror of https://gitlab.com/nakst/essence
Merge branch 'cf9' into 'master'
Use 0xcf9 write for system reset See merge request nakst/essence!13
This commit is contained in:
commit
bf308761fe
|
@ -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