summaryrefslogtreecommitdiffhomepage
path: root/Private/KernelKit
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-01-30 08:46:09 +0100
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-01-30 08:46:09 +0100
commitd7112cd6909640afd7609b3a142bc6ecf921ee25 (patch)
tree55033ad28d58d536c4b3bad715d8635f00773bfd /Private/KernelKit
parentf22e69b8837b84548f79e0b8ca7bef24605c6611 (diff)
Kernel: Breaking changes, see source code.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'Private/KernelKit')
-rw-r--r--Private/KernelKit/CodeManager.hpp77
-rw-r--r--Private/KernelKit/DebugOutput.hpp6
-rw-r--r--Private/KernelKit/Defines.hpp2
-rw-r--r--Private/KernelKit/Device.hpp8
-rw-r--r--Private/KernelKit/DriveManager.hpp8
-rw-r--r--Private/KernelKit/FileManager.hpp8
-rw-r--r--Private/KernelKit/Framebuffer.hpp6
-rw-r--r--Private/KernelKit/Loader.hpp6
-rw-r--r--Private/KernelKit/OSErr.hpp4
-rw-r--r--Private/KernelKit/PCI/Database.hpp6
-rw-r--r--Private/KernelKit/PCI/Device.hpp10
-rw-r--r--Private/KernelKit/PCI/Dma.hpp6
-rw-r--r--Private/KernelKit/PCI/Dma.inl4
-rw-r--r--Private/KernelKit/PCI/Express.hpp2
-rw-r--r--Private/KernelKit/PCI/IO.hpp6
-rw-r--r--Private/KernelKit/PCI/Iterator.hpp4
-rw-r--r--Private/KernelKit/PCI/PCI.hpp6
-rw-r--r--Private/KernelKit/PEF.hpp10
-rw-r--r--Private/KernelKit/PermissionSelector.hxx6
-rw-r--r--Private/KernelKit/ProcessManager.hpp8
-rw-r--r--Private/KernelKit/SMPManager.hpp8
-rw-r--r--Private/KernelKit/Semaphore.hpp6
-rw-r--r--Private/KernelKit/SharedObjectCore.hxx6
-rw-r--r--Private/KernelKit/ThreadLocalStorage.hxx14
-rw-r--r--Private/KernelKit/ThreadLocalStorage.inl8
-rw-r--r--Private/KernelKit/Timer.hpp8
26 files changed, 120 insertions, 123 deletions
diff --git a/Private/KernelKit/CodeManager.hpp b/Private/KernelKit/CodeManager.hpp
index 66c8ca45..2a843755 100644
--- a/Private/KernelKit/CodeManager.hpp
+++ b/Private/KernelKit/CodeManager.hpp
@@ -1,7 +1,7 @@
/*
* ========================================================
*
- * hCore
+ * HCore
* Copyright 2024 Mahrouss Logic, all rights reserved.
*
* ========================================================
@@ -10,66 +10,63 @@
#ifndef _INC_CODE_MANAGER_
#define _INC_CODE_MANAGER_
-#include "NewKit/Defines.hpp"
#include <KernelKit/PEF.hpp>
#include <NewKit/ErrorOr.hpp>
#include <NewKit/String.hpp>
-namespace hCore
-{
+#include "NewKit/Defines.hpp"
+
+namespace HCore {
///
/// \name PEFLoader
/// \brief PEF loader class.
///
-class PEFLoader : public Loader
-{
- private:
- explicit PEFLoader() = delete;
+class PEFLoader : public Loader {
+ private:
+ explicit PEFLoader() = delete;
- public:
- explicit PEFLoader(const VoidPtr blob);
- explicit PEFLoader(const char *path);
- ~PEFLoader() override;
+ public:
+ explicit PEFLoader(const VoidPtr blob);
+ explicit PEFLoader(const char *path);
+ ~PEFLoader() override;
- public:
- HCORE_COPY_DEFAULT(PEFLoader);
+ public:
+ HCORE_COPY_DEFAULT(PEFLoader);
- public:
- typedef void (*MainKind)(void);
+ public:
+ typedef void (*MainKind)(void);
- public:
- const char *Path() override;
- const char *Format() override;
- const char *MIME() override;
+ public:
+ const char *Path() override;
+ const char *Format() override;
+ const char *MIME() override;
- public:
- ErrorOr<VoidPtr> LoadStart() override;
- VoidPtr FindSymbol(const char *name, Int32 kind) override;
+ public:
+ ErrorOr<VoidPtr> LoadStart() override;
+ VoidPtr FindSymbol(const char *name, Int32 kind) override;
- public:
- bool IsLoaded() noexcept;
+ public:
+ bool IsLoaded() noexcept;
- private:
- Ref<StringView> fPath;
- VoidPtr fCachedBlob;
- bool fBad;
+ private:
+ Ref<StringView> fPath;
+ VoidPtr fCachedBlob;
+ bool fBad;
};
-namespace Utils
-{
+namespace Utils {
/// \brief Much like Mac OS's UPP.
/// This is read-only by design.
/// It handles different kind of code.
-/// PowerPC <-> AMD64 for example.
-typedef struct UniversalProcedureTable final
-{
- const Char NAME[kPefNameLen];
- const VoidPtr TRAP;
- const SizeT ARCH;
+/// ARM <-> AMD64 for example.
+typedef struct UniversalProcedureTable final {
+ const Char NAME[kPefNameLen];
+ const VoidPtr TRAP;
+ const SizeT ARCH;
} __attribute__((packed)) UniversalProcedureTableType;
bool execute_from_image(PEFLoader &exec) noexcept;
-} // namespace Utils
-} // namespace hCore
+} // namespace Utils
+} // namespace HCore
-#endif // ifndef _INC_CODE_MANAGER_
+#endif // ifndef _INC_CODE_MANAGER_
diff --git a/Private/KernelKit/DebugOutput.hpp b/Private/KernelKit/DebugOutput.hpp
index 1e30e6a4..ac83ad16 100644
--- a/Private/KernelKit/DebugOutput.hpp
+++ b/Private/KernelKit/DebugOutput.hpp
@@ -1,7 +1,7 @@
/*
* ========================================================
*
- * hCore
+ * HCore
* Copyright 2024 Mahrouss Logic, all rights reserved.
*
* ========================================================
@@ -13,7 +13,7 @@
#include <NewKit/OwnPtr.hpp>
#include <NewKit/Stream.hpp>
-namespace hCore
+namespace HCore
{
// @brief Emulates a VT100 terminal.
class TerminalDevice final : public DeviceInterface<const char*>
@@ -37,4 +37,4 @@ namespace hCore
}
extern TerminalDevice kcout;
-} // namespace hCore
+} // namespace HCore
diff --git a/Private/KernelKit/Defines.hpp b/Private/KernelKit/Defines.hpp
index d87d2b28..d7c3c092 100644
--- a/Private/KernelKit/Defines.hpp
+++ b/Private/KernelKit/Defines.hpp
@@ -1,7 +1,7 @@
/*
* ========================================================
*
- * hCore
+ * HCore
* Copyright 2024 Mahrouss Logic, all rights reserved.
*
* ========================================================
diff --git a/Private/KernelKit/Device.hpp b/Private/KernelKit/Device.hpp
index 4ae968c2..e172880b 100644
--- a/Private/KernelKit/Device.hpp
+++ b/Private/KernelKit/Device.hpp
@@ -1,7 +1,7 @@
/*
* ========================================================
*
- * hCore
+ * HCore
* Copyright 2024 Mahrouss Logic, all rights reserved.
*
* ========================================================
@@ -9,14 +9,14 @@
#pragma once
-/* hCore */
+/* HCore */
/* File: KernelKit/Device.hpp */
/* Device abstraction utilities. */
#include <NewKit/ErrorOr.hpp>
#include <NewKit/Ref.hpp>
-namespace hCore
+namespace HCore
{
template<typename T>
class DeviceInterface;
@@ -91,4 +91,4 @@ namespace hCore
kDeviceCD,
kDeviceSwap,
};
-} // namespace hCore
+} // namespace HCore
diff --git a/Private/KernelKit/DriveManager.hpp b/Private/KernelKit/DriveManager.hpp
index 251453aa..7bafb4dc 100644
--- a/Private/KernelKit/DriveManager.hpp
+++ b/Private/KernelKit/DriveManager.hpp
@@ -1,7 +1,7 @@
/*
* ========================================================
*
- * hCore
+ * HCore
* Copyright 2024 Mahrouss Logic, all rights reserved.
*
* ========================================================
@@ -9,7 +9,7 @@
#pragma once
-#include <CompilerKit/Compiler.hpp>
+#include <CompilerKit/CompilerKit.hpp>
#include <KernelKit/Device.hpp>
#include <NewKit/Defines.hpp>
#include <NewKit/String.hpp>
@@ -17,7 +17,7 @@
#define kDriveInvalidID -1
#define kDriveNameLen 32
-namespace hCore {
+namespace HCore {
enum {
kInvalidDrive = -1,
kBlockDevice = 0xAD,
@@ -77,4 +77,4 @@ class DriveSelector final {
private:
DriveTraits *fDrive;
};
-} // namespace hCore
+} // namespace HCore
diff --git a/Private/KernelKit/FileManager.hpp b/Private/KernelKit/FileManager.hpp
index a1391c34..ef508393 100644
--- a/Private/KernelKit/FileManager.hpp
+++ b/Private/KernelKit/FileManager.hpp
@@ -1,7 +1,7 @@
/*
* ========================================================
*
- * hCore
+ * HCore
* Copyright 2024 Mahrouss Logic, all rights reserved.
*
* ========================================================
@@ -27,7 +27,7 @@
/// refer to first enum.
#define kFileOpsCount 4
-namespace hCore
+namespace HCore
{
enum
{
@@ -242,6 +242,6 @@ FileStream<Encoding, Class>::FileStream(const Encoding *path) : fFile(Class::Get
}
template <typename Encoding, typename Class> FileStream<Encoding, Class>::~FileStream() = default;
-} // namespace hCore
+} // namespace HCore
-#define node_cast(PTR) reinterpret_cast<hCore::NodePtr>(PTR)
+#define node_cast(PTR) reinterpret_cast<HCore::NodePtr>(PTR)
diff --git a/Private/KernelKit/Framebuffer.hpp b/Private/KernelKit/Framebuffer.hpp
index b435202b..a0a0e4c5 100644
--- a/Private/KernelKit/Framebuffer.hpp
+++ b/Private/KernelKit/Framebuffer.hpp
@@ -1,7 +1,7 @@
/*
* ========================================================
*
- * hCore
+ * HCore
* Copyright 2024 Mahrouss Logic, all rights reserved.
*
* ========================================================
@@ -13,7 +13,7 @@
#include <NewKit/Defines.hpp>
#include <NewKit/Ref.hpp>
-namespace hCore
+namespace HCore
{
enum class FramebufferColorKind : UChar
{
@@ -54,6 +54,6 @@ namespace hCore
FramebufferColorKind m_Colour;
};
-} // namespace hCore
+} // namespace HCore
#endif /* ifndef _INC_FB_HPP__ */
diff --git a/Private/KernelKit/Loader.hpp b/Private/KernelKit/Loader.hpp
index e290abca..01f3fa48 100644
--- a/Private/KernelKit/Loader.hpp
+++ b/Private/KernelKit/Loader.hpp
@@ -1,7 +1,7 @@
/*
* ========================================================
*
- * hCore
+ * HCore
* Copyright 2024 Mahrouss Logic, all rights reserved.
*
* ========================================================
@@ -11,9 +11,9 @@
#include <NewKit/ErrorOr.hpp>
#include <NewKit/Defines.hpp>
-#include <CompilerKit/Compiler.hpp>
+#include <CompilerKit/CompilerKit.hpp>
-namespace hCore
+namespace HCore
{
class Loader
{
diff --git a/Private/KernelKit/OSErr.hpp b/Private/KernelKit/OSErr.hpp
index 8872b3f0..a15e2e0a 100644
--- a/Private/KernelKit/OSErr.hpp
+++ b/Private/KernelKit/OSErr.hpp
@@ -1,7 +1,7 @@
/*
* ========================================================
*
- * hCore
+ * HCore
* Copyright 2024 Mahrouss Logic, all rights reserved.
*
* ========================================================
@@ -11,7 +11,7 @@
#include <NewKit/Defines.hpp>
-namespace hCore
+namespace HCore
{
typedef Int32 OSErr;
diff --git a/Private/KernelKit/PCI/Database.hpp b/Private/KernelKit/PCI/Database.hpp
index b62108a7..72198041 100644
--- a/Private/KernelKit/PCI/Database.hpp
+++ b/Private/KernelKit/PCI/Database.hpp
@@ -1,7 +1,7 @@
/*
* ========================================================
*
- * hCore
+ * HCore
* Copyright Mahrouss Logic, all rights reserved.
*
* ========================================================
@@ -11,7 +11,7 @@
#include <KernelKit/PCI/Device.hpp>
#include <NewKit/Defines.hpp>
-namespace hCore {
+namespace HCore {
namespace Types {
// https://wiki.osdev.org/PCI
enum class PciDeviceKind : UChar {
@@ -35,4 +35,4 @@ namespace hCore {
Invalid = Unassgined,
};
} // namespace Types
-} // namespace hCore
+} // namespace HCore
diff --git a/Private/KernelKit/PCI/Device.hpp b/Private/KernelKit/PCI/Device.hpp
index 8e956563..d3c58e96 100644
--- a/Private/KernelKit/PCI/Device.hpp
+++ b/Private/KernelKit/PCI/Device.hpp
@@ -1,7 +1,7 @@
/*
* ========================================================
*
- * hCore
+ * HCore
* Copyright Mahrouss Logic, all rights reserved.
*
* ========================================================
@@ -10,7 +10,7 @@
#include <NewKit/Defines.hpp>
-namespace hCore::PCI
+namespace HCore::PCI
{
enum class PciConfigKind : UShort
{
@@ -77,8 +77,8 @@ namespace hCore::PCI
UShort m_Bar;
};
-} // namespace hCore::PCI
+} // namespace HCore::PCI
-extern "C" void LumiaPCISetCfgTarget(hCore::UInt bar);
-extern "C" hCore::UInt LumiaPCIReadRaw(hCore::UInt bar);
+extern "C" void LumiaPCISetCfgTarget(HCore::UInt bar);
+extern "C" HCore::UInt LumiaPCIReadRaw(HCore::UInt bar);
diff --git a/Private/KernelKit/PCI/Dma.hpp b/Private/KernelKit/PCI/Dma.hpp
index 87cd78cf..8e027179 100644
--- a/Private/KernelKit/PCI/Dma.hpp
+++ b/Private/KernelKit/PCI/Dma.hpp
@@ -1,7 +1,7 @@
/*
* ========================================================
*
- * hCore
+ * HCore
* Copyright Mahrouss Logic, all rights reserved.
*
* ========================================================
@@ -15,7 +15,7 @@
#include <NewKit/OwnPtr.hpp>
#include <NewKit/Ref.hpp>
-namespace hCore
+namespace HCore
{
enum class DmaKind
{
@@ -76,6 +76,6 @@ class DMAFactory final
public:
static OwnPtr<IOBuf<Char *>> Construct(OwnPtr<DMAWrapper> &dma);
};
-} // namespace hCore
+} // namespace HCore
#include <KernelKit/PCI/Dma.inl>
diff --git a/Private/KernelKit/PCI/Dma.inl b/Private/KernelKit/PCI/Dma.inl
index e1f27720..8738e54c 100644
--- a/Private/KernelKit/PCI/Dma.inl
+++ b/Private/KernelKit/PCI/Dma.inl
@@ -1,13 +1,13 @@
/*
* ========================================================
*
- * hCore
+ * HCore
* Copyright 2024 Mahrouss Logic, all rights reserved.
*
* ========================================================
*/
-namespace hCore
+namespace HCore
{
template<class T>
T* DMAWrapper::operator->()
diff --git a/Private/KernelKit/PCI/Express.hpp b/Private/KernelKit/PCI/Express.hpp
index a3febed1..45676c23 100644
--- a/Private/KernelKit/PCI/Express.hpp
+++ b/Private/KernelKit/PCI/Express.hpp
@@ -1,7 +1,7 @@
/*
* ========================================================
*
- * hCore
+ * HCore
* Copyright Mahrouss Logic, all rights reserved.
*
* ========================================================
diff --git a/Private/KernelKit/PCI/IO.hpp b/Private/KernelKit/PCI/IO.hpp
index 9bb820be..bcc728f4 100644
--- a/Private/KernelKit/PCI/IO.hpp
+++ b/Private/KernelKit/PCI/IO.hpp
@@ -1,7 +1,7 @@
/*
* ========================================================
*
- * hCore
+ * HCore
* Copyright Mahrouss Logic, all rights reserved.
*
* ========================================================
@@ -15,7 +15,7 @@
#include <NewKit/Array.hpp>
#include <NewKit/Ref.hpp>
-namespace hCore
+namespace HCore
{
template<SizeT Sz>
class IOArray final
@@ -74,4 +74,4 @@ class IOArray final
};
using IOArray16 = IOArray<16>;
-} // namespace hCore
+} // namespace HCore
diff --git a/Private/KernelKit/PCI/Iterator.hpp b/Private/KernelKit/PCI/Iterator.hpp
index 70fbe59a..89e1f246 100644
--- a/Private/KernelKit/PCI/Iterator.hpp
+++ b/Private/KernelKit/PCI/Iterator.hpp
@@ -11,7 +11,7 @@
#define ME_DEVICE_COUNT (33)
#define ME_FUNCTION_COUNT (8)
-namespace hCore::PCI {
+namespace HCore::PCI {
class Iterator final {
public:
Iterator() = delete;
@@ -31,6 +31,6 @@ namespace hCore::PCI {
private:
Array<PCI::Device, ME_BUS_COUNT> m_Devices;
};
-} // namespace hCore::PCI
+} // namespace HCore::PCI
#endif // __PCI_ITERATOR_HPP__
diff --git a/Private/KernelKit/PCI/PCI.hpp b/Private/KernelKit/PCI/PCI.hpp
index 487d7614..a70688ce 100644
--- a/Private/KernelKit/PCI/PCI.hpp
+++ b/Private/KernelKit/PCI/PCI.hpp
@@ -1,7 +1,7 @@
/*
* ========================================================
*
- * hCore
+ * HCore
* Copyright Mahrouss Logic, all rights reserved.
*
* ========================================================
@@ -17,7 +17,7 @@
#define PCI_FUNC_COUNT (8)
#define PCI_BUS_COUNT (255)
-namespace hCore::PCI {
+namespace HCore::PCI {
// model
struct DeviceHeader {
UInt16 VendorId;
@@ -53,4 +53,4 @@ namespace hCore::PCI {
Detail::BAR BAR4;
Detail::BAR BAR5;
};
-} // namespace hCore::PCI
+} // namespace HCore::PCI
diff --git a/Private/KernelKit/PEF.hpp b/Private/KernelKit/PEF.hpp
index ecf90348..f259d8ac 100644
--- a/Private/KernelKit/PEF.hpp
+++ b/Private/KernelKit/PEF.hpp
@@ -1,7 +1,7 @@
/*
* ========================================================
*
- * hCore
+ * HCore
* Copyright 2024 Mahrouss Logic, all rights reserved.
*
* ========================================================
@@ -10,7 +10,7 @@
#ifndef _INC_LOADER_PEF_HPP
#define _INC_LOADER_PEF_HPP
-#include <CompilerKit/Compiler.hpp>
+#include <CompilerKit/CompilerKit.hpp>
#include <KernelKit/Loader.hpp>
#include <NewKit/Defines.hpp>
@@ -24,7 +24,7 @@
// @brief Preferred Executable Format, a format designed for any computer.
-namespace hCore
+namespace HCore
{
enum
{
@@ -79,7 +79,7 @@ enum
kPefZero = 0xE,
kPefLinkerID = 0x1,
};
-} // namespace hCore
+} // namespace HCore
#define kPefExt ".cm"
#define kPefDylibExt ".dlib"
@@ -87,7 +87,7 @@ enum
#define kPefObjectExt ".obj"
#define kPefDebugExt ".cmdbg"
-// hCore System Binary Interface.
+// HCore System Binary Interface.
#define kPefAbi (0xDEAD2)
#define kPefStart "__start"
diff --git a/Private/KernelKit/PermissionSelector.hxx b/Private/KernelKit/PermissionSelector.hxx
index 171325ee..805d29ff 100644
--- a/Private/KernelKit/PermissionSelector.hxx
+++ b/Private/KernelKit/PermissionSelector.hxx
@@ -1,7 +1,7 @@
/*
* ========================================================
*
- * hCore
+ * HCore
* Copyright 2024 Mahrouss Logic, all rights reserved.
*
* ========================================================
@@ -10,7 +10,7 @@
#ifndef _INC_PERMISSION_SEL_HPP
#define _INC_PERMISSION_SEL_HPP
-#include <CompilerKit/Compiler.hpp>
+#include <CompilerKit/CompilerKit.hpp>
#include <NewKit/Defines.hpp>
// kernel mode user.
@@ -23,7 +23,7 @@
// hash 'user@host:password' -> base64 encoded data
// use this data to then fetch specific data.
-namespace hCore
+namespace HCore
{
enum class RingKind
{
diff --git a/Private/KernelKit/ProcessManager.hpp b/Private/KernelKit/ProcessManager.hpp
index 89f94941..fec44adf 100644
--- a/Private/KernelKit/ProcessManager.hpp
+++ b/Private/KernelKit/ProcessManager.hpp
@@ -1,7 +1,7 @@
/*
* ========================================================
*
- * hCore
+ * HCore
* Copyright 2024 Mahrouss Logic, all rights reserved.
*
* ========================================================
@@ -21,7 +21,7 @@
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
-namespace hCore
+namespace HCore
{
//! @brief Process identifier.
typedef Int64 ProcessID;
@@ -124,7 +124,7 @@ class Process final
void AssignStart(UIntPtr &imageStart) noexcept;
public:
- Char Name[kProcessLen] = {"hCore Process"};
+ Char Name[kProcessLen] = {"HCore Process"};
ProcessSubsystem SubSystem;
ProcessSelector Selector;
HAL::StackFrame *StackFrame{nullptr};
@@ -228,7 +228,7 @@ class ProcessHelper final
};
const Int32 &rt_get_exit_code() noexcept;
-} // namespace hCore
+} // namespace HCore
#include <KernelKit/ThreadLocalStorage.hxx>
diff --git a/Private/KernelKit/SMPManager.hpp b/Private/KernelKit/SMPManager.hpp
index f4317cc3..889f72c1 100644
--- a/Private/KernelKit/SMPManager.hpp
+++ b/Private/KernelKit/SMPManager.hpp
@@ -1,7 +1,7 @@
/*
* ========================================================
*
- * hCore
+ * HCore
* Copyright 2024 Mahrouss Logic, all rights reserved.
*
* ========================================================
@@ -10,13 +10,13 @@
#ifndef _INC_SMP_MANAGER_HPP
#define _INC_SMP_MANAGER_HPP
-#include <CompilerKit/Compiler.hpp>
+#include <CompilerKit/CompilerKit.hpp>
#include <ArchKit/Arch.hpp>
#include <NewKit/Ref.hpp>
#define kMaxHarts 8
-namespace hCore
+namespace HCore
{
using ThreadID = UInt32;
@@ -116,6 +116,6 @@ namespace hCore
// @brief makes thread sleep.
// hooks and hangs thread to prevent code from executing.
void rt_hang_thread(HAL::StackFrame* stack);
-} // namespace hCore
+} // namespace HCore
#endif // !_INC_SMP_MANAGER_HPP
diff --git a/Private/KernelKit/Semaphore.hpp b/Private/KernelKit/Semaphore.hpp
index 252728b1..dda4ff16 100644
--- a/Private/KernelKit/Semaphore.hpp
+++ b/Private/KernelKit/Semaphore.hpp
@@ -1,7 +1,7 @@
/*
* ========================================================
*
- * hCore
+ * HCore
* Copyright 2024 Mahrouss Logic, all rights reserved.
*
* ========================================================
@@ -10,9 +10,9 @@
#pragma once
#include <NewKit/Defines.hpp>
-#include <CompilerKit/Compiler.hpp>
+#include <CompilerKit/CompilerKit.hpp>
-namespace hCore
+namespace HCore
{
class Process;
diff --git a/Private/KernelKit/SharedObjectCore.hxx b/Private/KernelKit/SharedObjectCore.hxx
index 784e6e52..afda0080 100644
--- a/Private/KernelKit/SharedObjectCore.hxx
+++ b/Private/KernelKit/SharedObjectCore.hxx
@@ -1,7 +1,7 @@
/*
* ========================================================
*
- * hCore
+ * HCore
* Copyright 2024 Mahrouss Logic, all rights reserved.
*
* ========================================================
@@ -15,7 +15,7 @@
#include <KernelKit/Loader.hpp>
#include <NewKit/Defines.hpp>
-namespace hCore
+namespace HCore
{
class SharedObject final
{
@@ -90,6 +90,6 @@ inline void hcore_pure_call(void)
// virtual placeholder.
return;
}
-} // namespace hCore
+} // namespace HCore
#endif /* ifndef __KERNELKIT_SHARED_OBJECT_CORE_HXX__ */
diff --git a/Private/KernelKit/ThreadLocalStorage.hxx b/Private/KernelKit/ThreadLocalStorage.hxx
index 8fc8b9dd..ef0ef730 100644
--- a/Private/KernelKit/ThreadLocalStorage.hxx
+++ b/Private/KernelKit/ThreadLocalStorage.hxx
@@ -1,7 +1,7 @@
/*
* ========================================================
*
- * hCore
+ * HCore
* Copyright 2024 Mahrouss Logic, all rights reserved.
*
* ========================================================
@@ -30,11 +30,11 @@ typedef char rt_cookie_type[3];
/// Located in GS on AMD64, Virtual Address 0x10000 (64x0, 32x0, ARM64)
struct ThreadInformationBlock final
{
- hCore::Char Name[255]; // Module Name
- hCore::UIntPtr StartCode; // Start Address
- hCore::UIntPtr StartData; // Allocation Heap
- hCore::UIntPtr StartStack; // Stack Pointer.
- hCore::Int32 Arch; // Architecture and/or platform.
+ HCore::Char Name[255]; // Module Name
+ HCore::UIntPtr StartCode; // Start Address
+ HCore::UIntPtr StartData; // Allocation Heap
+ HCore::UIntPtr StartStack; // Stack Pointer.
+ HCore::Int32 Arch; // Architecture and/or platform.
rt_cookie_type Cookie; // Not shown in public header, this is the way we tell something went wrong.
};
@@ -42,7 +42,7 @@ struct ThreadInformationBlock final
extern void rt_install_tib(ThreadInformationBlock *pTib);
///! @brief Cookie Sanity check.
-hCore::Boolean hcore_tls_check(ThreadInformationBlock *ptr);
+HCore::Boolean hcore_tls_check(ThreadInformationBlock *ptr);
#include "ThreadLocalStorage.inl"
diff --git a/Private/KernelKit/ThreadLocalStorage.inl b/Private/KernelKit/ThreadLocalStorage.inl
index bf557122..2cf9c3a1 100644
--- a/Private/KernelKit/ThreadLocalStorage.inl
+++ b/Private/KernelKit/ThreadLocalStorage.inl
@@ -1,7 +1,7 @@
/*
* ========================================================
*
- * hCore
+ * HCore
* Copyright 2024 Mahrouss Logic, all rights reserved.
*
* ========================================================
@@ -12,7 +12,7 @@
template <typename T>
inline T* hcore_tls_new_ptr(void)
{
- using namespace hCore;
+ using namespace HCore;
auto ref_process = ProcessManager::Shared().Leak().GetCurrent();
@@ -27,7 +27,7 @@ inline bool hcore_tls_delete_ptr(T* ptr)
if (!ptr)
return false;
- using namespace hCore;
+ using namespace HCore;
auto ref_process = ProcessManager::Shared().Leak().GetCurrent();
ptr->~T();
@@ -42,7 +42,7 @@ T* hcore_tls_new_class(Args&&... args)
if (ptr)
{
- *ptr = T(hCore::forward(args)...);
+ *ptr = T(HCore::forward(args)...);
return ptr;
}
diff --git a/Private/KernelKit/Timer.hpp b/Private/KernelKit/Timer.hpp
index 057b4212..5839f099 100644
--- a/Private/KernelKit/Timer.hpp
+++ b/Private/KernelKit/Timer.hpp
@@ -1,7 +1,7 @@
/*
* ========================================================
*
- * hCore
+ * HCore
* Copyright 2024 Mahrouss Logic, all rights reserved.
*
* ========================================================
@@ -10,11 +10,11 @@
#pragma once
#include <ArchKit/Arch.hpp>
-#include <CompilerKit/Compiler.hpp>
+#include <CompilerKit/CompilerKit.hpp>
#include <NewKit/ErrorID.hpp>
-namespace hCore
+namespace HCore
{
class HardwareTimer;
class HardwareTimerInterface;
@@ -65,4 +65,4 @@ inline Int64 Milliseconds(Int64 time)
return 1000 / Seconds(time);
}
-} // namespace hCore
+} // namespace HCore