mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 09:47:44 +00:00
HV: Fix new MISRAC violations for brackets
Fix remaining 11S and 12S violations. These are after the 7 patches submitted earlier. Signed-off-by: Arindam Roy <arindam.roy@intel.com>
This commit is contained in:
@@ -115,16 +115,18 @@ int general_sw_loader(struct vm *vm, struct vcpu *vcpu)
|
||||
pr_dbg("Loading guest to run-time location");
|
||||
|
||||
/* FIXME: set config according to predefined offset */
|
||||
if (!is_vm0(vm))
|
||||
if (!is_vm0(vm)) {
|
||||
return load_guest(vm, vcpu);
|
||||
}
|
||||
|
||||
/* calculate the kernel entry point */
|
||||
zeropage = (struct zero_page *)
|
||||
vm->sw.kernel_info.kernel_src_addr;
|
||||
kernel_entry_offset = (zeropage->hdr.setup_sects + 1) * 512;
|
||||
if (vcpu->arch_vcpu.cpu_mode == CPU_MODE_64BIT)
|
||||
if (vcpu->arch_vcpu.cpu_mode == CPU_MODE_64BIT) {
|
||||
/* 64bit entry is the 512bytes after the start */
|
||||
kernel_entry_offset += 512;
|
||||
}
|
||||
|
||||
vm->sw.kernel_info.kernel_entry_addr =
|
||||
(void *)((uint64_t)vm->sw.kernel_info.kernel_load_addr
|
||||
|
Reference in New Issue
Block a user