mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-08-09 20:18:19 +00:00
hv: fixed by replace ull to ul.
ul is used as immediate integer suffix with type uint64_t. Tracked-On: #3214 Signed-off-by: Huihuang Shi <huihuang.shi@intel.com>
This commit is contained in:
parent
46b157008c
commit
5d662ea11f
@ -1420,7 +1420,7 @@ static int32_t vlapic_read(struct acrn_vlapic *vlapic, uint32_t offset_arg, uint
|
||||
struct lapic_regs *lapic = &(vlapic->apic_page);
|
||||
uint32_t i;
|
||||
uint32_t offset = offset_arg;
|
||||
*data = 0ULL;
|
||||
*data = 0UL;
|
||||
|
||||
if (offset > sizeof(*lapic)) {
|
||||
ret = -EACCES;
|
||||
|
@ -25,7 +25,7 @@ void triple_fault_shutdown_vm(struct acrn_vcpu *vcpu)
|
||||
io_req->io_type = REQ_PORTIO;
|
||||
io_req->reqs.pio.direction = REQUEST_WRITE;
|
||||
io_req->reqs.pio.address = VIRTUAL_PM1A_CNT_ADDR;
|
||||
io_req->reqs.pio.size = 2ULL;
|
||||
io_req->reqs.pio.size = 2UL;
|
||||
io_req->reqs.pio.value = (VIRTUAL_PM1A_SLP_EN | (5U << 10U));
|
||||
|
||||
/* Inject pm1a S5 request to SOS to shut down the guest */
|
||||
|
@ -102,7 +102,7 @@ void append_seed_arg(char *cmd_dst, bool vm_is_sos)
|
||||
|
||||
if ((cmd_dst != NULL) && vm_is_sos) {
|
||||
for (i = 0U; seed_arg[i].str != NULL; i++) {
|
||||
if (seed_arg[i].addr != 0ULL) {
|
||||
if (seed_arg[i].addr != 0UL) {
|
||||
(void)memset(buf, 0U, sizeof(buf));
|
||||
|
||||
snprintf(buf, sizeof(buf), "%s0x%X ", seed_arg[i].str,
|
||||
|
Loading…
Reference in New Issue
Block a user