ReactOS  0.4.14-dev-831-gef8c9239
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 
13 VOID
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 }
#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
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 _In_
Definition: no_sal2.h:204
unsigned int ULONG
Definition: retypes.h:1