diff options
Diffstat (limited to 'src/kernel/KernelKit')
| -rw-r--r-- | src/kernel/KernelKit/CoreProcessScheduler.h | 6 | ||||
| -rw-r--r-- | src/kernel/KernelKit/ILoader.h | 10 | ||||
| -rw-r--r-- | src/kernel/KernelKit/ZXD.h | 3 |
3 files changed, 10 insertions, 9 deletions
diff --git a/src/kernel/KernelKit/CoreProcessScheduler.h b/src/kernel/KernelKit/CoreProcessScheduler.h index a6f817f7..9b05d27d 100644 --- a/src/kernel/KernelKit/CoreProcessScheduler.h +++ b/src/kernel/KernelKit/CoreProcessScheduler.h @@ -48,7 +48,7 @@ enum struct TreeKind : UInt32 { }; template <typename T> -struct ProcessHeapTree { +struct ProcessHeapTree final { static constexpr auto kHeap = true; static constexpr auto kFile = false; static constexpr auto kSpecial = false; @@ -67,7 +67,7 @@ struct ProcessHeapTree { }; template <typename T> -struct ProcessFileTree { +struct ProcessFileTree final { static constexpr auto kHeap = false; static constexpr auto kFile = true; static constexpr auto kSpecial = false; @@ -88,7 +88,7 @@ struct ProcessFileTree { }; template <typename T> -struct ProcessSpecialTree { +struct ProcessSpecialTree final { static constexpr auto kHeap = false; static constexpr auto kFile = false; static constexpr auto kSpecial = true; diff --git a/src/kernel/KernelKit/ILoader.h b/src/kernel/KernelKit/ILoader.h index 1cc0742d..a98046b5 100644 --- a/src/kernel/KernelKit/ILoader.h +++ b/src/kernel/KernelKit/ILoader.h @@ -1,4 +1,4 @@ -// Copyright 2024-2025, Amlal El Mahrouss (amlal@nekernel.org) +// Copyright 2024-2026, Amlal El Mahrouss (amlal@nekernel.org) // Licensed under the Apache License, Version 2.0 (see LICENSE file) // Official repository: https://github.com/nekernel-org/nekernel @@ -14,7 +14,7 @@ namespace Kernel { -/// @brief This interface is used to make loader contracts (MSCOFF, PEF). +/// @brief The ILoader interface is used to make dynamic loader contracts (such as: MSCOFF, PEF). /// @author Amlal El Mahrouss class ILoader { public: @@ -25,9 +25,9 @@ class ILoader { public: virtual _Output ErrorOr<VoidPtr> GetBlob() { return ErrorOr<VoidPtr>{}; } - virtual _Output const Char* AsString() { return ""; } - virtual _Output const Char* MIME() { return ""; } - virtual _Output const Char* Path() { return ""; } + virtual _Output const Char* AsString() { return "(null)"; } + virtual _Output const Char* MIME() { return "*/*"; } + virtual _Output const Char* Path() { return "(null)"; } virtual _Output ErrorOr<VoidPtr> FindStart() { return ErrorOr<VoidPtr>{}; } virtual _Output ErrorOr<VoidPtr> FindSymbol(_Input const Char*, _Input Int32) { return ErrorOr<VoidPtr>{}; diff --git a/src/kernel/KernelKit/ZXD.h b/src/kernel/KernelKit/ZXD.h index e56299c9..9ac79af4 100644 --- a/src/kernel/KernelKit/ZXD.h +++ b/src/kernel/KernelKit/ZXD.h @@ -56,8 +56,9 @@ inline constexpr auto kDriverName = ".drvr"; /// @note This is ProcessSanitizer specific. inline constexpr auto kProsanName = ".pros"; +/// @brief Exec ptr alias. using ZxdExecPtr = ZxdExec*; - +/// @brief Exec stub alias. using ZxdStubPtr = ZxdStub*; } // namespace Kernel |
