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>
13
#include <
Library/OcDirectResetLib.h
>
14
15
VOID
16
DirectResetCold
(
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
}
DirectResetCold
VOID DirectResetCold(VOID)
Definition
DirectReset.c:16
OcDirectResetLib.h
IoWrite8
UINT8 EFIAPI IoWrite8(IN UINTN Port, IN UINT8 Value)
Definition
UserMisc.c:307
Library
OcDirectResetLib
DirectReset.c
Generated by
1.12.0