]> git.proxmox.com Git - mirror_edk2.git/blame - DuetPkg/EfiLdr/Support.h
Fix a security hole in shell binaries:
[mirror_edk2.git] / DuetPkg / EfiLdr / Support.h
CommitLineData
9071550e 1/*++\r
2\r
3Copyright (c) 2006, Intel Corporation \r
4All rights reserved. This program and the accompanying materials \r
5are licensed and made available under the terms and conditions of the BSD License \r
6which accompanies this distribution. The full text of the license may be found at \r
7http://opensource.org/licenses/bsd-license.php \r
8 \r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
11\r
12Module Name:\r
13 Support.h\r
14\r
15Abstract:\r
16\r
17Revision History:\r
18\r
19--*/\r
20\r
21#ifndef _EFILDR_SUPPORT_H_\r
22#define _EFILDR_SUPPORT_H_\r
23\r
24EFI_STATUS\r
25EfiAddMemoryDescriptor(\r
26 UINTN *NoDesc,\r
27 EFI_MEMORY_DESCRIPTOR *Desc,\r
28 EFI_MEMORY_TYPE Type,\r
29 EFI_PHYSICAL_ADDRESS BaseAddress,\r
30 UINT64 NoPages,\r
31 UINT64 Attribute\r
32 );\r
33\r
34UINTN\r
35FindSpace(\r
36 UINTN NoPages,\r
37 IN UINTN *NumberOfMemoryMapEntries,\r
38 IN EFI_MEMORY_DESCRIPTOR *EfiMemoryDescriptor,\r
39 EFI_MEMORY_TYPE Type,\r
40 UINT64 Attribute\r
41 );\r
42\r
43VOID\r
44GenMemoryMap (\r
45 UINTN *NumberOfMemoryMapEntries,\r
46 EFI_MEMORY_DESCRIPTOR *EfiMemoryDescriptor,\r
47 BIOS_MEMORY_MAP *BiosMemoryMap\r
48 );\r
49\r
50#endif\r