mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 06:15:26 +00:00
35 lines
739 B
C
35 lines
739 B
C
/*
|
|
* COPYRIGHT: See COPYING.ARM in the top level directory
|
|
* PROJECT: ReactOS UEFI Boot Library
|
|
* FILE: boot/environ/lib/firmware/fwutil.c
|
|
* PURPOSE: Boot Library Firmware Utility Functions
|
|
* PROGRAMMER: Alex Ionescu (alex.ionescu@reactos.org)
|
|
*/
|
|
|
|
/* INCLUDES ******************************************************************/
|
|
|
|
#include "bl.h"
|
|
|
|
VOID
|
|
BlFwReboot (
|
|
VOID
|
|
)
|
|
{
|
|
#ifdef BL_KD_SUPPORTED
|
|
/* Stop the boot debugger*/
|
|
BlBdStop();
|
|
#endif
|
|
|
|
/* Reset the machine */
|
|
EfiResetSystem(EfiResetCold);
|
|
}
|
|
|
|
NTSTATUS
|
|
MmFwFreePages (
|
|
_In_ ULONG BasePage,
|
|
_In_ ULONG PageCount
|
|
)
|
|
{
|
|
/* Free the pages */
|
|
return EfiFreePages(PageCount, BasePage << PAGE_SHIFT);
|
|
}
|