mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-22 13:37:10 +00:00
UEFI: add FIXME comments to function emalloc() & __emalloc()
Add a FIXME comment that the emalloc() & __emalloc cannot guarantee to return address under 4G, and the hypervisor cannot handle params, which address is above 4G, delivered from efi stub. Signed-off-by: Zheng, Gen <gen.zheng@intel.com>
This commit is contained in:
parent
88b79c901b
commit
e0128b1173
@ -100,6 +100,10 @@ failed:
|
|||||||
* @addr: a pointer to the allocated address on success
|
* @addr: a pointer to the allocated address on success
|
||||||
*
|
*
|
||||||
* If we cannot satisfy @align we return 0.
|
* If we cannot satisfy @align we return 0.
|
||||||
|
*
|
||||||
|
* FIXME: This function cannot guarantee to return address under 4G,
|
||||||
|
* and the hypervisor cannot handle params, which address is above 4G,
|
||||||
|
* delivered from efi stub.
|
||||||
*/
|
*/
|
||||||
EFI_STATUS emalloc(UINTN size, UINTN align, EFI_PHYSICAL_ADDRESS *addr)
|
EFI_STATUS emalloc(UINTN size, UINTN align, EFI_PHYSICAL_ADDRESS *addr)
|
||||||
{
|
{
|
||||||
@ -160,7 +164,12 @@ fail:
|
|||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
EFI_STATUS __emalloc(UINTN size, UINTN align, EFI_PHYSICAL_ADDRESS *addr, EFI_MEMORY_TYPE mem_type)
|
/* FIXME: This function cannot guarantee to return address under 4G,
|
||||||
|
* and the hypervisor cannot handle params, which address is above 4G,
|
||||||
|
* delivered from efi stub.
|
||||||
|
*/
|
||||||
|
EFI_STATUS __emalloc(UINTN size, UINTN align, EFI_PHYSICAL_ADDRESS *addr,
|
||||||
|
EFI_MEMORY_TYPE mem_type)
|
||||||
{
|
{
|
||||||
UINTN map_size, map_key, desc_size;
|
UINTN map_size, map_key, desc_size;
|
||||||
EFI_MEMORY_DESCRIPTOR *map_buf;
|
EFI_MEMORY_DESCRIPTOR *map_buf;
|
||||||
|
Loading…
Reference in New Issue
Block a user