From ba7b3ed69cd24970a28b72c54982735cd120e663 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Fri, 28 Mar 2025 19:57:33 +0100 Subject: kernel: breaking: Change namespace from NeOS to Kernel. sched: Fix redundancy in NeKernel's user scheduler macros, refactored the other files using the redundant macros too. part one of a series of commit for NeKernel. Signed-off-by: Amlal El Mahrouss --- dev/kernel/HALKit/RISCV/AP.h | 12 ++++++------ dev/kernel/HALKit/RISCV/HalAP.cc | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'dev/kernel/HALKit/RISCV') diff --git a/dev/kernel/HALKit/RISCV/AP.h b/dev/kernel/HALKit/RISCV/AP.h index c198a404..33ca3192 100644 --- a/dev/kernel/HALKit/RISCV/AP.h +++ b/dev/kernel/HALKit/RISCV/AP.h @@ -15,15 +15,15 @@ #include -namespace NeOS +namespace Kernel { typedef Int64 hal_ap_kind; typedef struct HAL_HARDWARE_THREAD { - NeOS::UIntPtr fStartAddress; - NeOS::UInt8 fPrivleged : 1; - NeOS::UInt32 fPageMemoryFlags; + Kernel::UIntPtr fStartAddress; + Kernel::UInt8 fPrivleged : 1; + Kernel::UInt32 fPageMemoryFlags; hal_ap_kind fIdentNumber; } HAL_HARDWARE_THREAD; @@ -31,5 +31,5 @@ namespace NeOS /// @param hart the hart /// @param epc the pc. /// @return - EXTERN_C NeOS::Void hal_set_pc_to_hart(HAL_HARDWARE_THREAD* hart, NeOS::VoidPtr epc); -} // namespace NeOS + EXTERN_C Kernel::Void hal_set_pc_to_hart(HAL_HARDWARE_THREAD* hart, Kernel::VoidPtr epc); +} // namespace Kernel diff --git a/dev/kernel/HALKit/RISCV/HalAP.cc b/dev/kernel/HALKit/RISCV/HalAP.cc index 788acf0f..c271f011 100644 --- a/dev/kernel/HALKit/RISCV/HalAP.cc +++ b/dev/kernel/HALKit/RISCV/HalAP.cc @@ -8,16 +8,16 @@ #include #include -using namespace NeOS; +using namespace Kernel; -namespace NeOS::Detail +namespace Kernel::Detail { STATIC void mp_hang_fn(void) { while (YES) ; } -} // namespace NeOS::Detail +} // namespace Kernel::Detail /// @brief wakes up thread. /// wakes up thread from hang. @@ -36,5 +36,5 @@ void mp_hang_thread(HAL::StackFramePtr stack) if (!stack) return; - hal_set_pc_to_hart(reinterpret_cast(stack->R15), reinterpret_cast(NeOS::Detail::mp_hang_fn)); + hal_set_pc_to_hart(reinterpret_cast(stack->R15), reinterpret_cast(Kernel::Detail::mp_hang_fn)); } -- cgit v1.2.3