mirror of
https://github.com/reactos/reactos.git
synced 2024-09-06 19:02:32 +00:00
36 lines
739 B
C
36 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);
|
|
}
|