hv: use uint64_t replace "unsigned long"

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:13:56 +08:00 committed by wenlingz
parent 473d871397
commit e8f3a2d42c
5 changed files with 6 additions and 6 deletions

View File

@ -126,7 +126,7 @@ again:
EFI_MEMORY_DESCRIPTOR *d;
uint32_t e820_type = 0;
d = (EFI_MEMORY_DESCRIPTOR *)((unsigned long)map_buf + (i * desc_size));
d = (EFI_MEMORY_DESCRIPTOR *)((uint64_t)map_buf + (i * desc_size));
switch(d->Type) {
case EfiReservedMemoryType:
case EfiRuntimeServicesCode:

View File

@ -7,7 +7,7 @@
#include <hypervisor.h>
#include <schedule.h>
static unsigned long pcpu_used_bitmap;
static uint64_t pcpu_used_bitmap;
void init_scheduler(void)
{

View File

@ -105,7 +105,7 @@ static inline uint16_t fls64(uint64_t value)
* ffs64 (0x8000000000000001) = 0
* ffs64 (0xf000000000000000) = 60
*
* @param value: 'unsigned long' type value
* @param value: 'uint64_t' type value
*
* @return value: zero-based bit index, INVALID_BIT_INDEX means
* when 'value' was zero, bit operations function can't find bit

View File

@ -2267,7 +2267,7 @@ Changes
* Generalized external private key implementation handling (like PKCS#11)
in SSL/TLS
* Revamped x509_verify() and the SSL f_vrfy callback implementations
* Moved from unsigned long to fixed width uint32_t types throughout code
* Moved from uint64_t to fixed width uint32_t types throughout code
* Renamed ciphersuites naming scheme to IANA reserved names
Bugfix

View File

@ -252,7 +252,7 @@ static void print_pow2(struct print_param *param,
uint64_t v_arg, uint32_t shift)
{
uint64_t v = v_arg;
/* max buffer required for octal representation of unsigned long long */
/* max buffer required for octal representation of uint64_t long */
char digitbuff[22];
/* Insert position for the next character+1 */
char *pos = digitbuff + sizeof(digitbuff);
@ -305,7 +305,7 @@ static void print_pow2(struct print_param *param,
static void print_decimal(struct print_param *param, int64_t value)
{
/* max. required buffer for unsigned long long in decimal format */
/* max. required buffer for uint64_t long in decimal format */
char digitbuff[20];
/* pointer to the next character position (+1) */
char *pos = digitbuff + sizeof(digitbuff);