diff options
Diffstat (limited to 'Private/Source')
| -rw-r--r-- | Private/Source/PEFCodeManager.cxx | 7 | ||||
| -rw-r--r-- | Private/Source/UserHeap.cxx | 9 |
2 files changed, 9 insertions, 7 deletions
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. */ |
