GNU-EFI Reset System
GNU-EFI Reset System
Hi! I use GNU-EFI to create an OS. I need to reboot the system. I found that I can use EFI_RESET_SYSTEM but idk how to call it. Can somebody help me?
-
- Member
- Posts: 5759
- Joined: Mon Mar 25, 2013 7:01 pm
Re: GNU-EFI Reset System
Code: Select all
uefi_call_wrapper( ST->RuntimeServices->ResetSystem, 4, EfiResetWarm, EFI_SUCCESS, 0, NULL );
Re: GNU-EFI Reset System
I believe the above is correct. To reboot the system, I use this (no GNU-EFI):
Code: Select all
m_runtimeServices->ResetSystem(EfiResetWarm, EFI_SUCCESS, 0, nullptr);