kernel/arch/cpu: implement for riscv64

Change-Id: Ib4dd636f9ebb62931f77c809185ea810485d801e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4057
Reviewed-by: Alex von Gluck IV <[email protected]>
This commit is contained in:
X512
2021-08-06 15:41:33 +00:00
committed by Alex von Gluck IV
parent 62790afc9d
commit d031c09ceb
4 changed files with 76 additions and 9 deletions
@@ -8,9 +8,24 @@
#include <boot/menu.h>
#ifdef __riscv
struct CpuInfo {
uint32 id;
};
void arch_smp_register_cpu(CpuInfo** cpu);
#endif
int arch_smp_get_current_cpu(void);
void arch_smp_init_other_cpus(void);
#ifdef __riscv
void arch_smp_boot_other_cpus(uint64 satp, uint64 kernel_entry);
#else
void arch_smp_boot_other_cpus(uint32 pml4, uint64 kernel_entry);
#endif
void arch_smp_add_safemode_menus(Menu *menu);
void arch_smp_init(void);