“fef94eac4e531b8043c422e45ba6bde3a4e5eac9”上不存在“...fluid/tests/git@gitcode.net:Crayonxin2000/Paddle.git”
提交 86cc653b 编写于 作者: R Roy Franz 提交者: Matt Fleming

efi: Rename __get_map() to efi_get_memory_map()

Rename function in preparation for making it more flexible
and sharing it.
Signed-off-by: NRoy Franz <roy.franz@linaro.org>
Signed-off-by: NMatt Fleming <matt.fleming@intel.com>
上级 5fef3870
...@@ -46,10 +46,10 @@ static void efi_printk(efi_system_table_t *sys_table_arg, char *str) ...@@ -46,10 +46,10 @@ static void efi_printk(efi_system_table_t *sys_table_arg, char *str)
} }
static efi_status_t __get_map(efi_system_table_t *sys_table_arg, static efi_status_t efi_get_memory_map(efi_system_table_t *sys_table_arg,
efi_memory_desc_t **map, efi_memory_desc_t **map,
unsigned long *map_size, unsigned long *map_size,
unsigned long *desc_size) unsigned long *desc_size)
{ {
efi_memory_desc_t *m = NULL; efi_memory_desc_t *m = NULL;
efi_status_t status; efi_status_t status;
...@@ -97,7 +97,7 @@ static efi_status_t efi_high_alloc(efi_system_table_t *sys_table_arg, ...@@ -97,7 +97,7 @@ static efi_status_t efi_high_alloc(efi_system_table_t *sys_table_arg,
u64 max_addr = 0; u64 max_addr = 0;
int i; int i;
status = __get_map(sys_table_arg, &map, &map_size, &desc_size); status = efi_get_memory_map(sys_table_arg, &map, &map_size, &desc_size);
if (status != EFI_SUCCESS) if (status != EFI_SUCCESS)
goto fail; goto fail;
...@@ -183,7 +183,7 @@ static efi_status_t efi_low_alloc(efi_system_table_t *sys_table_arg, ...@@ -183,7 +183,7 @@ static efi_status_t efi_low_alloc(efi_system_table_t *sys_table_arg,
unsigned long nr_pages; unsigned long nr_pages;
int i; int i;
status = __get_map(sys_table_arg, &map, &map_size, &desc_size); status = efi_get_memory_map(sys_table_arg, &map, &map_size, &desc_size);
if (status != EFI_SUCCESS) if (status != EFI_SUCCESS)
goto fail; goto fail;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册