mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-06 16:15:00 +00:00
HV: treewide: convert hexadecimals used in bitops to unsigned
Signed-off-by: Junjie Mao <junjie.mao@intel.com>
This commit is contained in:
@@ -284,10 +284,10 @@ void switch_world(struct vcpu *vcpu, int next_world)
|
||||
/* load EPTP for next world */
|
||||
if (next_world == NORMAL_WORLD) {
|
||||
exec_vmwrite64(VMX_EPT_POINTER_FULL,
|
||||
vcpu->vm->arch_vm.nworld_eptp | (3<<3) | 6);
|
||||
vcpu->vm->arch_vm.nworld_eptp | (3UL<<3) | 6UL);
|
||||
} else {
|
||||
exec_vmwrite64(VMX_EPT_POINTER_FULL,
|
||||
vcpu->vm->arch_vm.sworld_eptp | (3<<3) | 6);
|
||||
vcpu->vm->arch_vm.sworld_eptp | (3UL<<3) | 6UL);
|
||||
}
|
||||
|
||||
/* Update world index */
|
||||
@@ -420,7 +420,7 @@ bool initialize_trusty(struct vcpu *vcpu, uint64_t param)
|
||||
trusty_base_hpa = vm->sworld_control.sworld_memory.base_hpa;
|
||||
|
||||
exec_vmwrite64(VMX_EPT_POINTER_FULL,
|
||||
vm->arch_vm.sworld_eptp | (3<<3) | 6);
|
||||
vm->arch_vm.sworld_eptp | (3UL<<3) | 6UL);
|
||||
|
||||
/* save Normal World context */
|
||||
save_world_ctx(&vcpu->arch_vcpu.contexts[NORMAL_WORLD]);
|
||||
|
||||
Reference in New Issue
Block a user