[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:
Travis Geiselbrecht
2025-10-04 14:16:16 -07:00
parent 86f85453b1
commit 1684855b9a
3 changed files with 64 additions and 22 deletions

View File

@@ -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);
}