@@ -86,7 +86,7 @@ BOOLEAN APFSSupport = FALSE;
8686// extern EFI_SYSTEM_TABLE* gST;
8787// extern EFI_BOOT_SERVICES* gBS;
8888// extern EFI_DXE_SERVICES* gDS;
89- EFI_RUNTIME_SERVICES* gRS ;
89+ // EFI_RUNTIME_SERVICES* gRS;
9090
9191DRIVERS_FLAGS gDriversFlags ; // the initializer is not needed for global variables
9292
@@ -121,7 +121,9 @@ extern HDA_OUTPUTS AudioList[20];
121121extern CHAR8 *AudioOutputNames[];
122122extern EFI_AUDIO_IO_PROTOCOL *AudioIo;
123123
124+ #ifdef __cplusplus
124125}
126+ #endif
125127
126128static EFI_STATUS LoadEFIImageList (IN EFI_DEVICE_PATH **DevicePaths,
127129 IN CHAR16 *ImageTitle,
@@ -1774,9 +1776,9 @@ VOID ResetNvram ()
17741776 }
17751777
17761778 // Attempt warm reboot
1777- // gRS ->ResetSystem(EfiResetWarm, EFI_SUCCESS, 0, NULL);
1779+ // gRT ->ResetSystem(EfiResetWarm, EFI_SUCCESS, 0, NULL);
17781780 // Warm reboot may not be supported attempt cold reboot
1779- // gRS ->ResetSystem(EfiResetCold, EFI_SUCCESS, 0, NULL);
1781+ // gRT ->ResetSystem(EfiResetCold, EFI_SUCCESS, 0, NULL);
17801782 // Terminate the screen and just exit
17811783// TerminateScreen();
17821784}
@@ -2071,13 +2073,13 @@ RefitMain (IN EFI_HANDLE ImageHandle,
20712073 gST = SystemTable;
20722074 gImageHandle = ImageHandle;
20732075 gBS = SystemTable->BootServices ;
2074- gRS = SystemTable->RuntimeServices ;
2076+ gRT = SystemTable->RuntimeServices ;
20752077 /* Status = */ EfiGetSystemConfigurationTable (&gEfiDxeServicesTableGuid , (VOID **) &gDS );
20762078
20772079 ConsoleInHandle = SystemTable->ConsoleInHandle ;
20782080
20792081
2080- gRS ->GetTime (&Now, NULL );
2082+ gRT ->GetTime (&Now, NULL );
20812083
20822084 // firmware detection
20832085 gFirmwareClover = StrCmp (gST ->FirmwareVendor , L" CLOVER" ) == 0 ;
@@ -2782,9 +2784,9 @@ destruct_globals_objects(NULL); // That should be done just before quitting clov
27822784// }
27832785 }
27842786 // Attempt warm reboot
2785- gRS ->ResetSystem (EfiResetWarm, EFI_SUCCESS, 0 , NULL );
2787+ gRT ->ResetSystem (EfiResetWarm, EFI_SUCCESS, 0 , NULL );
27862788 // Warm reboot may not be supported attempt cold reboot
2787- gRS ->ResetSystem (EfiResetCold, EFI_SUCCESS, 0 , NULL );
2789+ gRT ->ResetSystem (EfiResetCold, EFI_SUCCESS, 0 , NULL );
27882790 // Terminate the screen and just exit
27892791 TerminateScreen ();
27902792 MainLoopRunning = FALSE ;
@@ -2794,7 +2796,7 @@ destruct_globals_objects(NULL); // That should be done just before quitting clov
27942796
27952797 case TAG_SHUTDOWN: // It is not Shut Down, it is Exit from Clover
27962798 TerminateScreen ();
2797- // gRS ->ResetSystem(EfiResetShutdown, EFI_SUCCESS, 0, NULL);
2799+ // gRT ->ResetSystem(EfiResetShutdown, EFI_SUCCESS, 0, NULL);
27982800 MainLoopRunning = FALSE ; // just in case we get this far
27992801 ReinitDesktop = FALSE ;
28002802 AfterTool = TRUE ;
@@ -2983,7 +2985,7 @@ destruct_globals_objects(NULL); // That should be done just before quitting clov
29832985 // If we end up here, things have gone wrong. Try to reboot, and if that
29842986 // fails, go into an endless loop.
29852987 // Slice - NO!!! Return to EFI GUI
2986- // gRS ->ResetSystem(EfiResetCold, EFI_SUCCESS, 0, NULL);
2988+ // gRT ->ResetSystem(EfiResetCold, EFI_SUCCESS, 0, NULL);
29872989 // EndlessIdleLoop();
29882990
29892991#ifdef ENABLE_SECURE_BOOT
@@ -2997,3 +2999,5 @@ destruct_globals_objects(NULL); // That should be done just before quitting clov
29972999 }
29983000 return EFI_SUCCESS;
29993001}
3002+
3003+
0 commit comments