diff options
| author | Amlal EL Mahrouss <amlalelmahrouss@icloud.com> | 2024-07-02 22:00:35 +0200 |
|---|---|---|
| committer | Amlal EL Mahrouss <amlalelmahrouss@icloud.com> | 2024-07-02 22:00:49 +0200 |
| commit | 375d0210dcb2070a12d916523f4a1dafff28360c (patch) | |
| tree | d0c217f529b8069ea659778c2ee9ca20aeba33a4 /Kernel/HALKit/POWER | |
| parent | f1d3744829a661d1600c2f3bbdbdf679ee0bd0e1 (diff) | |
MHR-36: Change namespace name, got out of the codename stage.
Signed-off-by: Amlal EL Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'Kernel/HALKit/POWER')
| -rw-r--r-- | Kernel/HALKit/POWER/HalHardware.cxx | 4 | ||||
| -rw-r--r-- | Kernel/HALKit/POWER/HalHart.cxx | 2 | ||||
| -rw-r--r-- | Kernel/HALKit/POWER/HalSerialPort.cxx | 2 | ||||
| -rw-r--r-- | Kernel/HALKit/POWER/HalThread.cxx | 2 | ||||
| -rw-r--r-- | Kernel/HALKit/POWER/HalVirtualMemory.cxx | 2 | ||||
| -rw-r--r-- | Kernel/HALKit/POWER/Hart.hxx | 10 | ||||
| -rw-r--r-- | Kernel/HALKit/POWER/Processor.hpp | 8 |
7 files changed, 15 insertions, 15 deletions
diff --git a/Kernel/HALKit/POWER/HalHardware.cxx b/Kernel/HALKit/POWER/HalHardware.cxx index 8dd0205c..15407eb3 100644 --- a/Kernel/HALKit/POWER/HalHardware.cxx +++ b/Kernel/HALKit/POWER/HalHardware.cxx @@ -7,7 +7,7 @@ #include <HALKit/POWER/Processor.hpp> #include <KernelKit/DebugOutput.hpp> -namespace NewOS +namespace Kernel { namespace HAL { @@ -16,4 +16,4 @@ namespace NewOS return 0; } } // namespace HAL -} // namespace NewOS +} // namespace Kernel diff --git a/Kernel/HALKit/POWER/HalHart.cxx b/Kernel/HALKit/POWER/HalHart.cxx index 16a26a3a..614828cb 100644 --- a/Kernel/HALKit/POWER/HalHart.cxx +++ b/Kernel/HALKit/POWER/HalHart.cxx @@ -8,7 +8,7 @@ #include <KernelKit/DebugOutput.hpp> #include <HALKit/POWER/Hart.hxx> -using namespace NewOS; +using namespace Kernel; /// @brief wakes up thread. /// wakes up thread from hang. diff --git a/Kernel/HALKit/POWER/HalSerialPort.cxx b/Kernel/HALKit/POWER/HalSerialPort.cxx index 86388b4c..abddd291 100644 --- a/Kernel/HALKit/POWER/HalSerialPort.cxx +++ b/Kernel/HALKit/POWER/HalSerialPort.cxx @@ -7,7 +7,7 @@ #include <HALKit/POWER/Processor.hpp> #include <KernelKit/DebugOutput.hpp> -using namespace NewOS; +using namespace Kernel; /// @brief Writes to COM1. /// @param bytes diff --git a/Kernel/HALKit/POWER/HalThread.cxx b/Kernel/HALKit/POWER/HalThread.cxx index 83f03373..18d84d4f 100644 --- a/Kernel/HALKit/POWER/HalThread.cxx +++ b/Kernel/HALKit/POWER/HalThread.cxx @@ -7,7 +7,7 @@ #include <HALKit/POWER/Processor.hpp> #include <KernelKit/DebugOutput.hpp> -EXTERN_C NewOS::HAL::StackFramePtr rt_get_current_context() +EXTERN_C Kernel::HAL::StackFramePtr rt_get_current_context() { return nullptr; } diff --git a/Kernel/HALKit/POWER/HalVirtualMemory.cxx b/Kernel/HALKit/POWER/HalVirtualMemory.cxx index a49ba63f..eb04a43d 100644 --- a/Kernel/HALKit/POWER/HalVirtualMemory.cxx +++ b/Kernel/HALKit/POWER/HalVirtualMemory.cxx @@ -12,7 +12,7 @@ /// @note refer to our SoC documentation. -using namespace NewOS; +using namespace Kernel; /// @brief Write directly to the specific TLB. /// @param mas0 diff --git a/Kernel/HALKit/POWER/Hart.hxx b/Kernel/HALKit/POWER/Hart.hxx index ab74be4a..8f466098 100644 --- a/Kernel/HALKit/POWER/Hart.hxx +++ b/Kernel/HALKit/POWER/Hart.hxx @@ -16,14 +16,14 @@ #include <NewKit/Defines.hpp> /// @brief hardware thread indentification type. -typedef NewOS::Int32 PPCHartType; +typedef Kernel::Int32 PPCHartType; /// @brief Hardware thread information structure. typedef struct HalHardwareThread { - NewOS::UIntPtr fStartAddress; - NewOS::UInt8 fPrivleged : 1; - NewOS::UInt32 fPageFlags; + Kernel::UIntPtr fStartAddress; + Kernel::UInt8 fPrivleged : 1; + Kernel::UInt32 fPageFlags; PPCHartType fIdentNumber; } HalHardwareThread; @@ -31,4 +31,4 @@ typedef struct HalHardwareThread /// @param hart the hart /// @param epc the pc. /// @return -EXTERN_C NewOS::Void hal_set_pc_to_hart(HalHardwareThread* hart, NewOS::VoidPtr epc); +EXTERN_C Kernel::Void hal_set_pc_to_hart(HalHardwareThread* hart, Kernel::VoidPtr epc); diff --git a/Kernel/HALKit/POWER/Processor.hpp b/Kernel/HALKit/POWER/Processor.hpp index af00b7af..5ff7eef3 100644 --- a/Kernel/HALKit/POWER/Processor.hpp +++ b/Kernel/HALKit/POWER/Processor.hpp @@ -13,7 +13,7 @@ #define kHalPPCAlignment __attribute__((aligned(4))) -namespace NewOS::HAL +namespace Kernel::HAL { typedef UIntPtr Reg; @@ -46,10 +46,10 @@ namespace NewOS::HAL { asm volatile("mr 0, 0"); // no oop } -} // namespace NewOS::HAL +} // namespace Kernel::HAL -EXTERN_C void int_handle_math(NewOS::UIntPtr sp); -EXTERN_C void int_handle_pf(NewOS::UIntPtr sp); +EXTERN_C void int_handle_math(Kernel::UIntPtr sp); +EXTERN_C void int_handle_pf(Kernel::UIntPtr sp); /// @brief Flush system TLB. EXTERN_C void hal_flush_tlb(); |
