![Intel Extensible Firmware Interface Specification Download Page 65](http://html1.mh-extra.com/html/intel/extensible-firmware-interface/extensible-firmware-interface_specification_2073117065.webp)
Services
Version 1.02
12/12/00
47
Description
The
AllocatePages()
function allocates the requested number of pages and returns a pointer
to the base address of the page range in the location referenced by
Memory
. The function scans the
memory map to locate free pages. When it finds a physically contiguous block of pages that is
large enough and also satisfies the value of
Type
, it changes the memory map to indicate that the
pages are now of type
MemoryType
.
In general, EFI OS loaders and EFI applications should allocate memory (and pool) of type
EfiLoaderData
. Boot service drivers must allocate memory (and pool) of type
EfiBootServicesData
. Runtime drivers should allocate memory (and pool) of type
EfiRuntimeServicesData
(although such allocation can only be made during boot services
time).
Allocation requests of
Type
AllocateAnyPages
allocate any available range of pages that
satisfies the request. On input, the address pointed to by
Memory
is ignored.
Allocation requests of
Type
AllocateMaxAddress
allocate any available range of pages
whose uppermost address is less than or equal to the address pointed to by
Memory
on input.
Allocation requests of
Type
AllocateAddress
allocate pages at the address pointed to by
Memory
on input.
Status Codes Returned
EFI_SUCCESS
The requested pages were allocated.
EFI_OUT_OF_RESOURCES
The pages could not be allocated.
EFI_INVALID_PARAMETER
One of the parameters has an invalid value.
Summary of Contents for Extensible Firmware Interface
Page 1: ...Extensible Firmware Interface Specification Version 1 02 December 12 2000...
Page 4: ...Extensible Firmware Interface Specification iv 12 12 00 Version 1 02...
Page 42: ...Extensible Firmware Interface Specification 24 12 01 00 Version 1 02...
Page 190: ...Extensible Firmware Interface Specification 172 12 12 00 Version 1 02...
Page 200: ...Extensible Firmware Interface Specification 182 12 12 00 Version 1 02...
Page 226: ...Extensible Firmware Interface Specification 208 12 12 00 Version 1 02...
Page 230: ...Extensible Firmware Interface Specification 212 12 12 00 Version 1 02...
Page 252: ...Extensible Firmware Interface Specification 234 12 12 00 Version 1 02...
Page 294: ...Extensible Firmware Interface Specification 276 12 12 00 Version 1 02...
Page 348: ...Extensible Firmware Interface Specification 330 12 01 00 Version 1 01...
Page 350: ...Extensible Firmware Interface Specification 332 12 12 00 Version 1 02...
Page 354: ...Extensible Firmware Interface Specification 336 12 12 00 Version 1 02...
Page 362: ...Extensible Firmware Interface Specification 344 12 12 00 Version 1 02...
Page 486: ...Extensible Firmware Interface Specification 468 12 12 00 Version 1 02...
Page 494: ...Extensible Firmware Interface Specification 476 12 12 00 Version 1 02...