summaryrefslogtreecommitdiffhomepage
path: root/Private/HALKit/PowerPC
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@el-mahrouss-logic.com>2024-03-28 13:05:28 +0100
committerAmlal El Mahrouss <amlal@el-mahrouss-logic.com>2024-03-28 13:05:28 +0100
commit84cc6ff6f43b48383248282743efc514946db641 (patch)
treefa7f9099b87e235ba122d17b6a3b39234cd39883 /Private/HALKit/PowerPC
parent3d798c5fc738768493df925d1f5d72256f2dec4e (diff)
Kernel: :boom: breaking changes, Update API and the HCORE based
macros, rename HCore to NewOS. Signed-off-by: Amlal El Mahrouss <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'Private/HALKit/PowerPC')
-rw-r--r--Private/HALKit/PowerPC/HalCoreSyscallHandlerPowerPC.cpp6
-rw-r--r--Private/HALKit/PowerPC/HalHardware.cxx4
-rw-r--r--Private/HALKit/PowerPC/HalThread.cxx2
-rw-r--r--Private/HALKit/PowerPC/Processor.hpp8
4 files changed, 10 insertions, 10 deletions
diff --git a/Private/HALKit/PowerPC/HalCoreSyscallHandlerPowerPC.cpp b/Private/HALKit/PowerPC/HalCoreSyscallHandlerPowerPC.cpp
index eac04e47..322cb604 100644
--- a/Private/HALKit/PowerPC/HalCoreSyscallHandlerPowerPC.cpp
+++ b/Private/HALKit/PowerPC/HalCoreSyscallHandlerPowerPC.cpp
@@ -7,12 +7,12 @@
#include <ArchKit/ArchKit.hpp>
#include <NewKit/Array.hpp>
-HCore::Array<void (*)(HCore::Int32 id, HCore::HAL::StackFrame *),
+NewOS::Array<void (*)(NewOS::Int32 id, NewOS::HAL::StackFrame *),
kKernelMaxSystemCalls>
kSyscalls;
-extern "C" void rt_syscall_handle(HCore::HAL::StackFrame *stack) {
- for (HCore::SizeT index = 0UL; index < kKernelMaxSystemCalls; ++index) {
+extern "C" void rt_syscall_handle(NewOS::HAL::StackFrame *stack) {
+ for (NewOS::SizeT index = 0UL; index < kKernelMaxSystemCalls; ++index) {
(kSyscalls[index].Leak().Leak())(stack->ID, stack);
}
}
diff --git a/Private/HALKit/PowerPC/HalHardware.cxx b/Private/HALKit/PowerPC/HalHardware.cxx
index 49e85138..9fc278a6 100644
--- a/Private/HALKit/PowerPC/HalHardware.cxx
+++ b/Private/HALKit/PowerPC/HalHardware.cxx
@@ -7,7 +7,7 @@
#include <HALKit/PowerPC/Processor.hpp>
#include <KernelKit/DebugOutput.hpp>
-namespace HCore {
+namespace NewOS {
namespace HAL {
UIntPtr hal_alloc_page(bool rw, bool user) { return 0; }
} // namespace HAL
@@ -31,4 +31,4 @@ void ke_com_print(const Char* bytes) {
++index;
}
}
-} // namespace HCore
+} // namespace NewOS
diff --git a/Private/HALKit/PowerPC/HalThread.cxx b/Private/HALKit/PowerPC/HalThread.cxx
index 585ae706..af8bcc6f 100644
--- a/Private/HALKit/PowerPC/HalThread.cxx
+++ b/Private/HALKit/PowerPC/HalThread.cxx
@@ -10,4 +10,4 @@
extern "C" void hal_flush_tlb() {}
extern "C" void rt_wait_400ns() {}
-extern "C" HCore::HAL::StackFramePtr rt_get_current_context() { return nullptr; }
+extern "C" NewOS::HAL::StackFramePtr rt_get_current_context() { return nullptr; }
diff --git a/Private/HALKit/PowerPC/Processor.hpp b/Private/HALKit/PowerPC/Processor.hpp
index e5f04455..be929fd7 100644
--- a/Private/HALKit/PowerPC/Processor.hpp
+++ b/Private/HALKit/PowerPC/Processor.hpp
@@ -11,7 +11,7 @@
#define __aligned __attribute__((aligned(4)))
-namespace HCore::HAL {
+namespace NewOS::HAL {
typedef UIntPtr Reg;
struct __aligned StackFrame {
@@ -34,8 +34,8 @@ inline void rt_halt() {
}
inline void rt_cli() {}
-} // namespace HCore::HAL
+} // namespace NewOS::HAL
-extern "C" void int_handle_math(HCore::UIntPtr sp);
-extern "C" void int_handle_pf(HCore::UIntPtr sp);
+extern "C" void int_handle_math(NewOS::UIntPtr sp);
+extern "C" void int_handle_pf(NewOS::UIntPtr sp);
extern "C" void* __ppc_alloca(size_t sz);