[dev][psci] clean up the psci driver a bit, add arg to cpu_on
- General cleanup of the driver a bit - Aadd a boot time message that prints the version - Add the argument field to CPU_ON - Pass the cpu number through from fdtwalk library
This commit is contained in:
@@ -221,7 +221,7 @@ status_t fdtwalk_setup_cpus_arm(const void *fdt) {
|
||||
for (size_t i = 1; i < cpu_count; i++) {
|
||||
/* note: assumes cpuids are numbered like MPIDR 0:0:0:N */
|
||||
dprintf(INFO, "ARM: starting cpu %#x\n", cpus[i].id);
|
||||
int ret = psci_cpu_on(cpus[i].id, MEMBASE + KERNEL_LOAD_OFFSET);
|
||||
int ret = psci_cpu_on(cpus[i].id, MEMBASE + KERNEL_LOAD_OFFSET, i);
|
||||
if (ret != 0) {
|
||||
printf("ERROR: psci CPU_ON returns %d\n", ret);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user