From a7091202dab1d4a3fcfa15ecb0f1f0b2c28d0957 Mon Sep 17 00:00:00 2001 From: Amlal EL Mahrouss Date: Fri, 14 Jun 2024 23:46:50 +0200 Subject: MHR-31: Working on SMP for ARM64, implementing HAL for ARM64 based Zeta machines. Signed-off-by: Amlal EL Mahrouss --- Kernel/HALKit/RISCV/Hart.hxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Kernel/HALKit/RISCV') diff --git a/Kernel/HALKit/RISCV/Hart.hxx b/Kernel/HALKit/RISCV/Hart.hxx index 17ec84a1..ba56b7c9 100644 --- a/Kernel/HALKit/RISCV/Hart.hxx +++ b/Kernel/HALKit/RISCV/Hart.hxx @@ -16,3 +16,9 @@ #include typedef NewOS::Int32 Rv64HartType; + +/// @brief Set PC to specific hart. +/// @param hart the hart +/// @param epc the pc. +/// @return +EXTERN_C NewOS::Void hal_switch_to_hart(Rv64HartType hart, NewOS::VoidPtr epc); \ No newline at end of file -- cgit v1.2.3