mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-21 21:19:35 +00:00
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:
parent
473d871397
commit
e8f3a2d42c
@ -126,7 +126,7 @@ again:
|
|||||||
EFI_MEMORY_DESCRIPTOR *d;
|
EFI_MEMORY_DESCRIPTOR *d;
|
||||||
uint32_t e820_type = 0;
|
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) {
|
switch(d->Type) {
|
||||||
case EfiReservedMemoryType:
|
case EfiReservedMemoryType:
|
||||||
case EfiRuntimeServicesCode:
|
case EfiRuntimeServicesCode:
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
#include <hypervisor.h>
|
#include <hypervisor.h>
|
||||||
#include <schedule.h>
|
#include <schedule.h>
|
||||||
|
|
||||||
static unsigned long pcpu_used_bitmap;
|
static uint64_t pcpu_used_bitmap;
|
||||||
|
|
||||||
void init_scheduler(void)
|
void init_scheduler(void)
|
||||||
{
|
{
|
||||||
|
@ -105,7 +105,7 @@ static inline uint16_t fls64(uint64_t value)
|
|||||||
* ffs64 (0x8000000000000001) = 0
|
* ffs64 (0x8000000000000001) = 0
|
||||||
* ffs64 (0xf000000000000000) = 60
|
* 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
|
* @return value: zero-based bit index, INVALID_BIT_INDEX means
|
||||||
* when 'value' was zero, bit operations function can't find bit
|
* when 'value' was zero, bit operations function can't find bit
|
||||||
|
@ -2267,7 +2267,7 @@ Changes
|
|||||||
* Generalized external private key implementation handling (like PKCS#11)
|
* Generalized external private key implementation handling (like PKCS#11)
|
||||||
in SSL/TLS
|
in SSL/TLS
|
||||||
* Revamped x509_verify() and the SSL f_vrfy callback implementations
|
* 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
|
* Renamed ciphersuites naming scheme to IANA reserved names
|
||||||
|
|
||||||
Bugfix
|
Bugfix
|
||||||
|
@ -252,7 +252,7 @@ static void print_pow2(struct print_param *param,
|
|||||||
uint64_t v_arg, uint32_t shift)
|
uint64_t v_arg, uint32_t shift)
|
||||||
{
|
{
|
||||||
uint64_t v = v_arg;
|
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];
|
char digitbuff[22];
|
||||||
/* Insert position for the next character+1 */
|
/* Insert position for the next character+1 */
|
||||||
char *pos = digitbuff + sizeof(digitbuff);
|
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)
|
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];
|
char digitbuff[20];
|
||||||
/* pointer to the next character position (+1) */
|
/* pointer to the next character position (+1) */
|
||||||
char *pos = digitbuff + sizeof(digitbuff);
|
char *pos = digitbuff + sizeof(digitbuff);
|
||||||
|
Loading…
Reference in New Issue
Block a user