GNU-EFI Reset System

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Moldu
Posts: 1
Joined: Sat Nov 07, 2020 3:15 pm

GNU-EFI Reset System

Post by Moldu »

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?
Octocontrabass
Member
Member
Posts: 5759
Joined: Mon Mar 25, 2013 7:01 pm

Re: GNU-EFI Reset System

Post by Octocontrabass »

Code: Select all

uefi_call_wrapper( ST->RuntimeServices->ResetSystem, 4, EfiResetWarm, EFI_SUCCESS, 0, NULL );
(Note: I haven't tested this, so it may not be correct.)
kzinti
Member
Member
Posts: 898
Joined: Mon Feb 02, 2015 7:11 pm

Re: GNU-EFI Reset System

Post by kzinti »

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);
Post Reply