MCPcopy Create free account
hub / github.com/CloverHackyColor/CloverBootloader / ResetNvram

Function ResetNvram

rEFIt_UEFI/Platform/Nvram.cpp:1475–1497  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1473
1474
1475VOID ResetNvram ()
1476{
1477 if (gFirmwareClover || gDriversFlags.EmuVariableLoaded) {
1478 if (gEmuVariableControl != NULL) {
1479 gEmuVariableControl->InstallEmulation(gEmuVariableControl);
1480 }
1481 }
1482
1483 ResetNativeNvram ();
1484
1485 if (gFirmwareClover || gDriversFlags.EmuVariableLoaded) {
1486 if (gEmuVariableControl != NULL) {
1487 gEmuVariableControl->UninstallEmulation(gEmuVariableControl);
1488 }
1489 }
1490
1491 // Attempt warm reboot
1492 // gRT->ResetSystem(EfiResetWarm, EFI_SUCCESS, 0, NULL);
1493 // Warm reboot may not be supported attempt cold reboot
1494 // gRT->ResetSystem(EfiResetCold, EFI_SUCCESS, 0, NULL);
1495 // Terminate the screen and just exit
1496 // TerminateScreen();
1497}

Callers 1

RunGenericMenuMethod · 0.85

Calls 1

ResetNativeNvramFunction · 0.85

Tested by

no test coverage detected