OSDev.org

The Place to Start for Operating System Developers
It is currently Wed Dec 02, 2020 12:40 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: GNU-EFI Reset System
PostPosted: Sat Nov 07, 2020 3:18 pm 
Offline

Joined: Sat Nov 07, 2020 3:15 pm
Posts: 1
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?


Top
 Profile  
 
 Post subject: Re: GNU-EFI Reset System
PostPosted: Thu Nov 12, 2020 7:19 pm 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 2526
Code:
uefi_call_wrapper( ST->RuntimeServices->ResetSystem, 4, EfiResetWarm, EFI_SUCCESS, 0, NULL );

(Note: I haven't tested this, so it may not be correct.)


Top
 Profile  
 
 Post subject: Re: GNU-EFI Reset System
PostPosted: Thu Nov 12, 2020 8:14 pm 
Offline
Member
Member

Joined: Mon Feb 02, 2015 7:11 pm
Posts: 426
I believe the above is correct. To reboot the system, I use this (no GNU-EFI):

Code:
m_runtimeServices->ResetSystem(EfiResetWarm, EFI_SUCCESS, 0, nullptr);

_________________
https://github.com/kiznit/rainbow-os


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Majestic-12 [Bot] and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group