Fixing checkpatch.pl warnings.
Most warnings are "Missing a blank line after declarations". I'm also
adding blank lines between multi-line comments and statements.
Ran with --ignore BRACES,SPDX_LICENSE_TAG,VOLATILE,SPLIT_STRING,
AVOID_EXTERNS,USE_SPINLOCK_T,NEW_TYPEDEFS,INITIALISED_STATIC,
FILE_PATH_CHANGES to reduce noise. Now there is only one type of
warning, with two instances:
WARNING: Prefer using '"%s...", __func__' to using 'dmb', this function's name, in a string
+ __asm__ volatile("dmb sy");
WARNING: Prefer using '"%s...", __func__' to using 'dsb', this function's name, in a string
+ __asm__ volatile("dsb sy");
Change-Id: Id837feef86dc81ba84de1809e76653ddce814422
diff --git a/src/cpu.c b/src/cpu.c
index 1ae6cd1..f87d78d 100644
--- a/src/cpu.c
+++ b/src/cpu.c
@@ -47,6 +47,7 @@
/* Initialize all CPUs. */
for (i = 0; i < MAX_CPUS; i++) {
struct cpu *c = &cpus[i];
+
cpu_init(c);
c->id = i; /* TODO: Initialize ID based on fdt. */
c->stack_bottom = &callstacks[i][STACK_SIZE];
@@ -96,6 +97,7 @@
if (!prev) {
struct vm *vm = vm_get(HF_PRIMARY_VM_ID);
struct vcpu *vcpu = &vm->vcpus[cpu_index(c)];
+
arch_regs_set_pc_arg(&vcpu->regs, entry, arg);
vcpu_on(vcpu);
}