diff options
| author | Amlal El Mahrouss <amlalelmahrouss@icloud.com> | 2024-02-08 11:14:52 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlalelmahrouss@icloud.com> | 2024-02-08 11:14:52 +0100 |
| commit | 477b65fe9d50014273f9f2357bdeb2dc82693db2 (patch) | |
| tree | 34332135148b9bcc7cad2d72edd395ee6a2cfced /Private | |
| parent | 10692c5aa9d449cab70965c9c97e5b431d900b9d (diff) | |
Kernel: Bump code.
Signed-off-by: Amlal El Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'Private')
| -rw-r--r-- | Private/KernelKit/ProcessManager.hpp | 2 | ||||
| -rw-r--r-- | Private/Source/PEFCodeManager.cxx | 7 | ||||
| -rw-r--r-- | Private/Source/UserHeap.cxx | 9 |
3 files changed, 10 insertions, 8 deletions
diff --git a/Private/KernelKit/ProcessManager.hpp b/Private/KernelKit/ProcessManager.hpp index a459dbbd..c57f09c1 100644 --- a/Private/KernelKit/ProcessManager.hpp +++ b/Private/KernelKit/ProcessManager.hpp @@ -118,7 +118,7 @@ class Process final { void AssignStart(UIntPtr &imageStart) noexcept; public: - Char Name[kProcessLen] = {"CoreProcess"}; + Char Name[kProcessLen] = {"Process"}; ProcessSubsystem SubSystem{0}; ProcessSelector Selector{ProcessSelector::kRingUser}; HAL::StackFramePtr StackFrame{nullptr}; diff --git a/Private/Source/PEFCodeManager.cxx b/Private/Source/PEFCodeManager.cxx index 347f7f7a..e7e0d9a0 100644 --- a/Private/Source/PEFCodeManager.cxx +++ b/Private/Source/PEFCodeManager.cxx @@ -97,7 +97,8 @@ VoidPtr PEFLoader::FindSymbol(const char *name, Int32 kind) { kcout << "Found potential container, checking for validity.\n"; if (container_header->Kind == kind) - return static_cast<UIntPtr *>(fCachedBlob) + container_header->Offset; + return (VoidPtr)(static_cast<UIntPtr *>(fCachedBlob) + + container_header->Offset); continue; } @@ -107,7 +108,7 @@ VoidPtr PEFLoader::FindSymbol(const char *name, Int32 kind) { } ErrorOr<VoidPtr> PEFLoader::LoadStart() { - if (auto sym = this->FindSymbol("__start", kPefCode); sym) + if (auto sym = this->FindSymbol(kPefStart, kPefCode); sym) return ErrorOr<VoidPtr>(sym); return ErrorOr<VoidPtr>(H_EXEC_ERROR); @@ -132,5 +133,5 @@ const char *PEFLoader::Path() { return fPath.Leak().CData(); } const char *PEFLoader::Format() { return "PEF"; } -const char *PEFLoader::MIME() { return "application/x-exec"; } +const char *PEFLoader::MIME() { return "application/x-hcore-exec"; } } // namespace HCore diff --git a/Private/Source/UserHeap.cxx b/Private/Source/UserHeap.cxx index 6a173a44..4690db9f 100644 --- a/Private/Source/UserHeap.cxx +++ b/Private/Source/UserHeap.cxx @@ -10,14 +10,15 @@ #include <NewKit/PageManager.hpp> #include <NewKit/UserHeap.hpp> -/// @file Heap.cxx -/// @brief Heap Manager, Process heap allocator. +/// @file UserHeap.cxx +/// @brief User Heap Manager, Process heap allocator. /// @note if you want to look at the kernel allocator, please look for -/// KernelHeap.cxx bugs: 0 +/// KernelHeap.cxx +/// BUGS: 0 namespace HCore { /** - * @brief Heap Manager class, takes care of allocating the process pools. + * @brief User Heap Manager class, takes care of allocating the process pools. * @note This rely on Virtual Memory! Consider adding good vmem support when * @note porting to a new arch. */ |
