TianoCore EDK2 master
Loading...
Searching...
No Matches
BaseResetShutdownBhyve.c
Go to the documentation of this file.
1
11#include <Base.h> // BIT13
12
13#include <IndustryStandard/Bhyve.h> // BHYVE_PM_REG
14#include <Library/BaseLib.h> // CpuDeadLoop()
15#include <Library/IoLib.h> // IoOr16()
16#include <Library/ResetSystemLib.h> // ResetShutdown()
17
25VOID
26EFIAPI
28 VOID
29 )
30{
31 IoBitFieldWrite16 (BHYVE_PM_REG, 10, 13, 5);
32 IoOr16 (BHYVE_PM_REG, BIT13);
33 CpuDeadLoop ();
34}
VOID EFIAPI CpuDeadLoop(VOID)
Definition: CpuDeadLoop.c:25
VOID EFIAPI ResetShutdown(VOID)
UINT16 EFIAPI IoOr16(IN UINTN Port, IN UINT16 OrData)
Definition: IoHighLevel.c:325
UINT16 EFIAPI IoBitFieldWrite16(IN UINTN Port, IN UINTN StartBit, IN UINTN EndBit, IN UINT16 Value)
Definition: IoHighLevel.c:453