mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-09 12:49:24 +00:00
hv: use uint32_t replace "unsigned 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:
@@ -80,7 +80,7 @@ build_atomic_dec(atomic_dec32, "l", uint32_t)
|
||||
build_atomic_dec(atomic_dec64, "q", uint64_t)
|
||||
|
||||
/**
|
||||
* #define atomic_set32(P, V) (*(unsigned int *)(P) |= (V))
|
||||
* #define atomic_set32(P, V) (*(uint32_t *)(P) |= (V))
|
||||
*
|
||||
* Parameters:
|
||||
* uint32_t* p A pointer to memory area that stores source
|
||||
|
@@ -22,8 +22,8 @@ struct mem_pool {
|
||||
};
|
||||
|
||||
/* APIs exposing memory allocation/deallocation abstractions */
|
||||
void *malloc(unsigned int num_bytes);
|
||||
void *calloc(unsigned int num_elements, unsigned int element_size);
|
||||
void *malloc(uint32_t num_bytes);
|
||||
void *calloc(uint32_t num_elements, uint32_t element_size);
|
||||
void free(const void *ptr);
|
||||
|
||||
#endif /* MEM_MGT_H */
|
||||
|
Reference in New Issue
Block a user