efi_loader: definition of efi_virtual_address_map()
Use efi_uintn_t where the UEFI spec uses UINTN. Use efi_uintn_t also for the result of the division of two efi_uintn_t. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
parent
c0a8a95263
commit
24e6722b8a
@ -238,8 +238,8 @@ struct efi_runtime_services {
|
|||||||
efi_status_t (EFIAPI *set_wakeup_time)(char enabled,
|
efi_status_t (EFIAPI *set_wakeup_time)(char enabled,
|
||||||
struct efi_time *time);
|
struct efi_time *time);
|
||||||
efi_status_t (EFIAPI *set_virtual_address_map)(
|
efi_status_t (EFIAPI *set_virtual_address_map)(
|
||||||
unsigned long memory_map_size,
|
efi_uintn_t memory_map_size,
|
||||||
unsigned long descriptor_size,
|
efi_uintn_t descriptor_size,
|
||||||
uint32_t descriptor_version,
|
uint32_t descriptor_version,
|
||||||
struct efi_mem_desc *virtmap);
|
struct efi_mem_desc *virtmap);
|
||||||
efi_status_t (EFIAPI *convert_pointer)(
|
efi_status_t (EFIAPI *convert_pointer)(
|
||||||
|
@ -427,8 +427,8 @@ void efi_runtime_detach(void)
|
|||||||
* Return: status code EFI_UNSUPPORTED
|
* Return: status code EFI_UNSUPPORTED
|
||||||
*/
|
*/
|
||||||
static __efi_runtime efi_status_t EFIAPI efi_set_virtual_address_map_runtime(
|
static __efi_runtime efi_status_t EFIAPI efi_set_virtual_address_map_runtime(
|
||||||
unsigned long memory_map_size,
|
efi_uintn_t memory_map_size,
|
||||||
unsigned long descriptor_size,
|
efi_uintn_t descriptor_size,
|
||||||
uint32_t descriptor_version,
|
uint32_t descriptor_version,
|
||||||
struct efi_mem_desc *virtmap)
|
struct efi_mem_desc *virtmap)
|
||||||
{
|
{
|
||||||
@ -571,17 +571,17 @@ void efi_runtime_relocate(ulong offset, struct efi_mem_desc *map)
|
|||||||
* Return: status code
|
* Return: status code
|
||||||
*/
|
*/
|
||||||
static efi_status_t EFIAPI efi_set_virtual_address_map(
|
static efi_status_t EFIAPI efi_set_virtual_address_map(
|
||||||
unsigned long memory_map_size,
|
efi_uintn_t memory_map_size,
|
||||||
unsigned long descriptor_size,
|
efi_uintn_t descriptor_size,
|
||||||
uint32_t descriptor_version,
|
uint32_t descriptor_version,
|
||||||
struct efi_mem_desc *virtmap)
|
struct efi_mem_desc *virtmap)
|
||||||
{
|
{
|
||||||
int n = memory_map_size / descriptor_size;
|
efi_uintn_t n = memory_map_size / descriptor_size;
|
||||||
int i;
|
efi_uintn_t i;
|
||||||
int rt_code_sections = 0;
|
int rt_code_sections = 0;
|
||||||
struct efi_event *event;
|
struct efi_event *event;
|
||||||
|
|
||||||
EFI_ENTRY("%lx %lx %x %p", memory_map_size, descriptor_size,
|
EFI_ENTRY("%zx %zx %x %p", memory_map_size, descriptor_size,
|
||||||
descriptor_version, virtmap);
|
descriptor_version, virtmap);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user