ReactOS 0.4.15-dev-8102-g108db8f
fwutil.c
Go to the documentation of this file.
1/*
2 * COPYRIGHT: See COPYING.ARM in the top level directory
3 * PROJECT: ReactOS UEFI Boot Library
4 * FILE: boot/environ/lib/firmware/fwutil.c
5 * PURPOSE: Boot Library Firmware Utility Functions
6 * PROGRAMMER: Alex Ionescu (alex.ionescu@reactos.org)
7 */
8
9/* INCLUDES ******************************************************************/
10
11#include "bl.h"
12
13VOID
15 VOID
16 )
17{
18#ifdef BL_KD_SUPPORTED
19 /* Stop the boot debugger*/
20 BlBdStop();
21#endif
22
23 /* Reset the machine */
25}
26
29 _In_ ULONG BasePage,
30 _In_ ULONG PageCount
31 )
32{
33 /* Free the pages */
34 return EfiFreePages(PageCount, BasePage << PAGE_SHIFT);
35}
@ EfiResetCold
Definition: UefiSpec.h:975
LONG NTSTATUS
Definition: precomp.h:26
VOID EfiResetSystem(_In_ EFI_RESET_TYPE ResetType)
Definition: firmware.c:1509
NTSTATUS EfiFreePages(_In_ ULONG Pages, _In_ EFI_PHYSICAL_ADDRESS PhysicalAddress)
Definition: firmware.c:973
#define PAGE_SHIFT
Definition: env_spec_w32.h:45
NTSTATUS MmFwFreePages(_In_ ULONG BasePage, _In_ ULONG PageCount)
Definition: fwutil.c:28
VOID BlFwReboot(VOID)
Definition: fwutil.c:14
#define _In_
Definition: ms_sal.h:308
uint32_t ULONG
Definition: typedefs.h:59