diff options
| author | Amlal El Mahrouss <amlalelmahrouss@icloud.com> | 2024-02-27 11:58:54 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlalelmahrouss@icloud.com> | 2024-02-27 11:58:54 +0100 |
| commit | a33d9510bd36a9fdb98f291250a025cd4bec8bc1 (patch) | |
| tree | f060a1f0624cf538c34abf700091bb7350a36af1 /Private/HALKit/PowerPC | |
| parent | 9614c53b82037f77d5b57777560f8a320cb2ac4f (diff) | |
Kernel: working on interrupts, almost fix them.
Signed-off-by: Amlal El Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'Private/HALKit/PowerPC')
| -rw-r--r-- | Private/HALKit/PowerPC/HalHardware.cxx | 9 | ||||
| -rw-r--r-- | Private/HALKit/PowerPC/HalThread.cxx | 16 |
2 files changed, 16 insertions, 9 deletions
diff --git a/Private/HALKit/PowerPC/HalHardware.cxx b/Private/HALKit/PowerPC/HalHardware.cxx index c066051c..e6c0f85c 100644 --- a/Private/HALKit/PowerPC/HalHardware.cxx +++ b/Private/HALKit/PowerPC/HalHardware.cxx @@ -10,15 +10,9 @@ #include <HALKit/PowerPC/Processor.hpp> #include <KernelKit/DebugOutput.hpp> -extern "C" void flush_tlb() {} -extern "C" void rt_wait_for_io() {} - -extern "C" HCore::HAL::StackFrame* rt_get_current_context() { return nullptr; } - namespace HCore { namespace HAL { UIntPtr hal_create_page(bool rw, bool user) { return 0; } - UIntPtr hal_alloc_page(UIntPtr offset, bool rw, bool user) { return 0; } } // namespace HAL @@ -30,9 +24,6 @@ void rt_wakeup_thread(HAL::StackFrame* stack) {} // hooks and hangs thread to prevent code from executing. void rt_hang_thread(HAL::StackFrame* stack) {} -// @brief main HAL entrypoint -void ke_init_hal() {} - void ke_com_print(const Char* bytes) { if (!bytes) return; diff --git a/Private/HALKit/PowerPC/HalThread.cxx b/Private/HALKit/PowerPC/HalThread.cxx new file mode 100644 index 00000000..b280ba90 --- /dev/null +++ b/Private/HALKit/PowerPC/HalThread.cxx @@ -0,0 +1,16 @@ +/* + * ======================================================== + * + * HCore + * Copyright Mahrouss Logic, all rights reserved. + * + * ======================================================== + */ + +#include <HALKit/PowerPC/Processor.hpp> +#include <KernelKit/DebugOutput.hpp> + +extern "C" void flush_tlb() {} +extern "C" void rt_wait_for_io() {} + +extern "C" HCore::HAL::StackFramePtr rt_get_current_context() { return nullptr; } |
