hv: use int32_t replace int

Since it's typedef in "include/lib/types.h"

Tracked-On: #861
Signed-off-by: Li, Fei1 <fei1.li@intel.com>
This commit is contained in:
Li, Fei1
2018-12-08 00:30:49 +08:00
committed by wenlingz
parent e8f3a2d42c
commit e3fc6c3c79
91 changed files with 472 additions and 471 deletions

View File

@@ -77,7 +77,7 @@ EFI_STATUS construct_mbi(EFI_PHYSICAL_ADDRESS hv_hpa)
struct multiboot_info *mbi;
struct multiboot_mmap *mmap;
struct efi_context *efi_ctx;
int i, j;
int32_t i, j;
mbi = MBOOT_INFO_PTR(hv_hpa);
mmap = MBOOT_MMAP_PTR(hv_hpa);
@@ -202,7 +202,7 @@ switch_to_guest_mode(EFI_HANDLE image, EFI_PHYSICAL_ADDRESS hv_hpa)
struct multiboot_info *mbi;
struct efi_context *efi_ctx;
struct acpi_table_rsdp *rsdp = NULL;
int i;
int32_t i;
EFI_CONFIGURATION_TABLE *config_table;
mbi = MBOOT_INFO_PTR(hv_hpa);

View File

@@ -67,7 +67,7 @@
}
EFI_STATUS get_pe_section(CHAR8 *base, char *section, UINTN *vaddr, UINTN *size);
typedef void(*hv_func)(int, struct multiboot_info*);
typedef void(*hv_func)(int32_t, struct multiboot_info*);
/*
* We allocate memory for the following struct together with hyperivosr itself

View File

@@ -48,7 +48,7 @@
static inline void memset(void *dstv, char ch, UINTN size)
{
char *dst = dstv;
int i;
int32_t i;
for (i = 0; i < size; i++)
dst[i] = ch;
@@ -56,15 +56,15 @@ static inline void memset(void *dstv, char ch, UINTN size)
static inline void memcpy(char *dst, const char *src, UINTN size)
{
int i;
int32_t i;
for (i = 0; i < size; i++)
*dst++ = *src++;
}
static inline int strlen(const char *str)
static inline int32_t strlen(const char *str)
{
int len;
int32_t len;
len = 0;
while (*str++)