summaryrefslogtreecommitdiffhomepage
path: root/Kernel/KernelKit
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/KernelKit')
-rw-r--r--Kernel/KernelKit/FileManager.hpp2
-rw-r--r--Kernel/KernelKit/PCI/Dma.hpp2
-rw-r--r--Kernel/KernelKit/ProcessScheduler.hxx8
-rw-r--r--Kernel/KernelKit/SMPManager.hpp2
-rw-r--r--Kernel/KernelKit/ThreadLocalStorage.hxx8
-rw-r--r--Kernel/KernelKit/ThreadLocalStorage.inl4
6 files changed, 13 insertions, 13 deletions
diff --git a/Kernel/KernelKit/FileManager.hpp b/Kernel/KernelKit/FileManager.hpp
index 3d4f1e7d..927d8b56 100644
--- a/Kernel/KernelKit/FileManager.hpp
+++ b/Kernel/KernelKit/FileManager.hpp
@@ -42,7 +42,7 @@
#define node_cast(PTR) reinterpret_cast<Kernel::NodePtr>(PTR)
/**
- @note Refer to first enum.
+ @note Refer to first enum.
*/
#define cFileOpsCount 4
#define cFileMimeGeneric "n-application-kind/all"
diff --git a/Kernel/KernelKit/PCI/Dma.hpp b/Kernel/KernelKit/PCI/Dma.hpp
index 7da1f241..e5e44c0b 100644
--- a/Kernel/KernelKit/PCI/Dma.hpp
+++ b/Kernel/KernelKit/PCI/Dma.hpp
@@ -52,7 +52,7 @@ namespace Kernel
T* Get(const UIntPtr off = 0);
public:
- operator bool();
+ operator bool();
bool operator!();
public:
diff --git a/Kernel/KernelKit/ProcessScheduler.hxx b/Kernel/KernelKit/ProcessScheduler.hxx
index 6dbec9e1..cbce2ec2 100644
--- a/Kernel/KernelKit/ProcessScheduler.hxx
+++ b/Kernel/KernelKit/ProcessScheduler.hxx
@@ -247,7 +247,7 @@ namespace Kernel
NEWOS_COPY_DEFAULT(ProcessScheduler)
- operator bool();
+ operator bool();
bool operator!();
public:
@@ -255,7 +255,7 @@ namespace Kernel
public:
SizeT Add(Ref<ProcessHeader>& processRef);
- Bool Remove(SizeT processSlot);
+ Bool Remove(SizeT processSlot);
public:
Ref<ProcessHeader>& TheCurrent();
@@ -275,8 +275,8 @@ namespace Kernel
class ProcessHelper final
{
public:
- STATIC bool Switch(HAL::StackFrame* newStack, const PID& newPid);
- STATIC bool CanBeScheduled(Ref<ProcessHeader>& process);
+ STATIC bool Switch(HAL::StackFrame* newStack, const PID& newPid);
+ STATIC bool CanBeScheduled(Ref<ProcessHeader>& process);
STATIC PID& TheCurrentPID();
STATIC SizeT StartScheduling();
};
diff --git a/Kernel/KernelKit/SMPManager.hpp b/Kernel/KernelKit/SMPManager.hpp
index f6afd7a8..69c8b54e 100644
--- a/Kernel/KernelKit/SMPManager.hpp
+++ b/Kernel/KernelKit/SMPManager.hpp
@@ -98,7 +98,7 @@ namespace Kernel
public:
Ref<HardwareThread*> operator[](const SizeT& idx);
bool operator!() noexcept;
- operator bool() noexcept;
+ operator bool() noexcept;
public:
/// @brief Shared instance of the SMP Manager.
diff --git a/Kernel/KernelKit/ThreadLocalStorage.hxx b/Kernel/KernelKit/ThreadLocalStorage.hxx
index 2dadd48e..4a0d7528 100644
--- a/Kernel/KernelKit/ThreadLocalStorage.hxx
+++ b/Kernel/KernelKit/ThreadLocalStorage.hxx
@@ -22,10 +22,10 @@
struct PACKED ThreadInformationBlock final
{
Kernel::Char Cookie[kTLSCookieLen]; // Process cookie.
- Kernel::UIntPtr StartCode; // Start Address
- Kernel::UIntPtr StartData; // Allocation Heap
- Kernel::UIntPtr StartStack; // Stack Pointer.
- Kernel::Int32 ThreadID; // Thread execution ID.
+ Kernel::UIntPtr StartCode; // Start Address
+ Kernel::UIntPtr StartData; // Allocation Heap
+ Kernel::UIntPtr StartStack; // Stack Pointer.
+ Kernel::Int32 ThreadID; // Thread execution ID.
};
typedef struct ThreadInformationBlock ProcessInformationBlock;
diff --git a/Kernel/KernelKit/ThreadLocalStorage.inl b/Kernel/KernelKit/ThreadLocalStorage.inl
index d2bd71d4..0a860336 100644
--- a/Kernel/KernelKit/ThreadLocalStorage.inl
+++ b/Kernel/KernelKit/ThreadLocalStorage.inl
@@ -66,8 +66,8 @@ T* tls_new_class(Args&&... args)
template <typename T>
inline Kernel::Bool tls_delete_class(T* ptr)
{
- if (!ptr)
- return false;
+ if (!ptr)
+ return false;
ptr->~T();
return tls_delete_ptr(ptr);