diff options
| -rw-r--r-- | Private/KernelKit/ProcessManager.hpp | 2 | ||||
| -rw-r--r-- | Private/Source/PEFCodeManager.cxx | 7 | ||||
| -rw-r--r-- | Private/Source/UserHeap.cxx | 9 | ||||
| -rw-r--r-- | Public/SPECIFICATION.TXT | 2 |
4 files changed, 11 insertions, 9 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. */ diff --git a/Public/SPECIFICATION.TXT b/Public/SPECIFICATION.TXT index ac9d5fe7..6a129d9e 100644 --- a/Public/SPECIFICATION.TXT +++ b/Public/SPECIFICATION.TXT @@ -3,7 +3,7 @@ =================================== - ABI and Format: PEF/PE32+. -- Architecture: Microkernel. +- Kernel architecture: Microkernel. - Language: C++/(Assembly (AMD64, X64000, X86S, ARM64)) =================================== |
