summaryrefslogtreecommitdiffhomepage
path: root/Private/HALKit/PowerPC/Processor.cpp
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-01-29 18:17:47 +0100
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-01-29 18:18:59 +0100
commit65254486efff0fd1bb78a48ff90b7713a5ce539f (patch)
tree20ce02c12a74ba9e6cd382bf9c1f09a0c611cb4d /Private/HALKit/PowerPC/Processor.cpp
parentf03986937db0b927da4b10554801e18e4dc7c43f (diff)
Kernel: Update TODO.
Src: Refactorings according to clang-format. Meta: Update specification. Public: Remove useless UIKit. Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'Private/HALKit/PowerPC/Processor.cpp')
-rw-r--r--Private/HALKit/PowerPC/Processor.cpp70
1 files changed, 25 insertions, 45 deletions
diff --git a/Private/HALKit/PowerPC/Processor.cpp b/Private/HALKit/PowerPC/Processor.cpp
index dc614fa9..e3b207c6 100644
--- a/Private/HALKit/PowerPC/Processor.cpp
+++ b/Private/HALKit/PowerPC/Processor.cpp
@@ -1,68 +1,48 @@
/*
-* ========================================================
-*
-* hCore
-* Copyright 2024 Mahrouss Logic, all rights reserved.
-*
-* ========================================================
-*/
+ * ========================================================
+ *
+ * hCore
+ * Copyright 2024 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::StackFrame* rt_get_current_context() { }
+extern "C" hCore::HAL::StackFrame* rt_get_current_context() {}
-namespace hCore
-{
-namespace HAL
-{
- UIntPtr hal_create_page(bool rw, bool user)
- {
- return 0;
- }
+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;
- }
-}
+UIntPtr hal_alloc_page(UIntPtr offset, bool rw, bool user) { return 0; }
+} // namespace HAL
// @brief wakes up thread.
// wakes up thread from hang.
-void rt_wakeup_thread(HAL::StackFrame* stack)
-{
-
-}
+void rt_wakeup_thread(HAL::StackFrame* stack) {}
// @brief makes thread sleep.
// hooks and hangs thread to prevent code from executing.
-void rt_hang_thread(HAL::StackFrame* stack)
-{
-
-}
+void rt_hang_thread(HAL::StackFrame* stack) {}
// @brief main HAL entrypoint
-void init_hal()
-{
-
-}
+void init_hal() {}
-void system_io_print(const char *bytes)
-{
- if (!bytes)
- return;
+void system_io_print(const char* bytes) {
+ if (!bytes) return;
- SizeT index = 0;
- SizeT len = string_length(bytes, 256);
+ SizeT index = 0;
+ SizeT len = string_length(bytes, 256);
- while (index < len)
- {
- // TODO
- ++index;
- }
+ while (index < len) {
+ // TODO
+ ++index;
+ }
}
TerminalDevice kcout(hCore::system_io_print, nullptr);
-} \ No newline at end of file
+} // namespace hCore