| 1473 | |
| 1474 | |
| 1475 | VOID 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 | } |
no test coverage detected