diff options
Diffstat (limited to 'Kernel/KernelKit')
| -rw-r--r-- | Kernel/KernelKit/DebugOutput.hpp | 10 | ||||
| -rw-r--r-- | Kernel/KernelKit/ProcessScheduler.hxx | 10 |
2 files changed, 11 insertions, 9 deletions
diff --git a/Kernel/KernelKit/DebugOutput.hpp b/Kernel/KernelKit/DebugOutput.hpp index f5c402db..05865661 100644 --- a/Kernel/KernelKit/DebugOutput.hpp +++ b/Kernel/KernelKit/DebugOutput.hpp @@ -125,10 +125,10 @@ namespace NewOS if (y < 0) y = -y; - const char NUMBERS[11] = "0123456789"; + const char cNumbers[11] = "0123456789"; Char buf[2]; - buf[0] = NUMBERS[h]; + buf[0] = cNumbers[h]; buf[1] = 0; term << buf; @@ -153,10 +153,10 @@ namespace NewOS if (y < 0) y = -y; - const char NUMBERS[17] = "0123456789ABCDEF"; + const char cNumbers[17] = "0123456789ABCDEF"; Char buf[2]; - buf[0] = NUMBERS[h]; + buf[0] = cNumbers[h]; buf[1] = 0; term << buf; @@ -186,7 +186,9 @@ namespace NewOS inline TerminalDevice& get_console_in(Char* buf) { TerminalDevice& selfTerm = TerminalDevice::The(); + selfTerm >> buf; + return selfTerm; } diff --git a/Kernel/KernelKit/ProcessScheduler.hxx b/Kernel/KernelKit/ProcessScheduler.hxx index 51a1563f..b8ac2aae 100644 --- a/Kernel/KernelKit/ProcessScheduler.hxx +++ b/Kernel/KernelKit/ProcessScheduler.hxx @@ -262,7 +262,7 @@ namespace NewOS SizeT Run() noexcept; public: - static Ref<ProcessScheduler&> The(); + STATIC Ref<ProcessScheduler&> The(); private: ProcessTeam mTeam; @@ -275,10 +275,10 @@ namespace NewOS class ProcessHelper final { public: - static bool Switch(HAL::StackFrame* newStack, const PID& newPid); - static bool CanBeScheduled(Ref<ProcessHeader>& process); - static PID& TheCurrentPID(); - static SizeT StartScheduling(); + STATIC bool Switch(HAL::StackFrame* newStack, const PID& newPid); + STATIC bool CanBeScheduled(Ref<ProcessHeader>& process); + STATIC PID& TheCurrentPID(); + STATIC SizeT StartScheduling(); }; const Int32& rt_get_exit_code() noexcept; |
