diff options
| author | Amlal EL Mahrouss <amlalelmahrouss@icloud.com> | 2024-07-28 08:37:45 +0200 |
|---|---|---|
| committer | Amlal EL Mahrouss <amlalelmahrouss@icloud.com> | 2024-07-28 10:07:41 +0200 |
| commit | d42e9fa42af70105346f14c8b48f60cd3f4ea845 (patch) | |
| tree | 34b58def6fb1129028276e90c2a1f594634b6c1e /Kernel/HALKit/AMD64/HalDebugOutput.cxx | |
| parent | 3feb5cb72e3e422e804098e2fdcb0bd3e7961627 (diff) | |
[IMP] New Storage.hpp inside StorageKit.
[REFACTOR] Process heap adjustements.
[WIP] SMP and Ring-3 switch for scheduler core.
Signed-off-by: Amlal EL Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'Kernel/HALKit/AMD64/HalDebugOutput.cxx')
| -rw-r--r-- | Kernel/HALKit/AMD64/HalDebugOutput.cxx | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/Kernel/HALKit/AMD64/HalDebugOutput.cxx b/Kernel/HALKit/AMD64/HalDebugOutput.cxx index 9e3dfcd8..36ae96b0 100644 --- a/Kernel/HALKit/AMD64/HalDebugOutput.cxx +++ b/Kernel/HALKit/AMD64/HalDebugOutput.cxx @@ -27,7 +27,7 @@ namespace Kernel /// @brief Init COM1. /// @return - bool serial_init() noexcept + bool hal_serial_init() noexcept { #ifdef __DEBUG__ if (kState == kStateReady || kState == kStateTransmit) @@ -64,7 +64,7 @@ namespace Kernel EXTERN_C void ke_io_write(const char* bytes) { #ifdef __DEBUG__ - Detail::serial_init(); + Detail::hal_serial_init(); if (!bytes || Detail::kState != kStateReady) return; @@ -74,18 +74,10 @@ namespace Kernel Detail::kState = kStateTransmit; SizeT index = 0; - SizeT len = rt_string_len(bytes, 0); - - const auto cColor = "\x1b[1;32m"; - SizeT lenClr = rt_string_len(cColor, 0); - - while (index < lenClr) - { - HAL::Out8(Detail::PORT, cColor[index]); - ++index; - } + SizeT len = 0; index = 0; + len = rt_string_len(bytes, 255); while (index < len) { @@ -103,7 +95,7 @@ namespace Kernel EXTERN_C void ke_io_read(const char* bytes) { #ifdef __DEBUG__ - Detail::serial_init(); + Detail::hal_serial_init(); if (!bytes || Detail::kState != kStateReady) return; |
