OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
DirectReset.c
Go to the documentation of this file.
1
8#include <Base.h>
9
10#include <Library/BaseLib.h>
11#include <Library/DebugLib.h>
12#include <Library/IoLib.h>
14
15VOID
17 VOID
18 )
19{
20 volatile UINTN Index;
21
22 IoWrite8 (0xCF9, BIT2 | BIT1); // 1st choice: PIIX3 RCR, RCPU|SRST
23
24 for (Index = 0; Index < 100; ++Index) {
25 }
26
27 IoWrite8 (0x64, 0xfe); // 2nd choice: keyboard controller
28 CpuDeadLoop ();
29}
VOID DirectResetCold(VOID)
Definition DirectReset.c:16
UINT8 EFIAPI IoWrite8(IN UINTN Port, IN UINT8 Value)
Definition UserMisc.c:307