From 333fed96b7ccd3ee4f5f097445408dde34d330db Mon Sep 17 00:00:00 2001 From: amlal Date: Thu, 21 Mar 2024 00:38:52 +0100 Subject: Kernel: See below. - Fix kernel heap, made it better. - Fix System.Core, made it better. Signed-off-by: amlal --- Private/ArchKit/ArchKit.hpp | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) (limited to 'Private/ArchKit') diff --git a/Private/ArchKit/ArchKit.hpp b/Private/ArchKit/ArchKit.hpp index 17b70aa7..7f5624c1 100644 --- a/Private/ArchKit/ArchKit.hpp +++ b/Private/ArchKit/ArchKit.hpp @@ -20,25 +20,10 @@ #error Unknown architecture #endif -namespace HCore { -template -class SystemCall { - public: - explicit SystemCall() { kcout << "SystemCall::SystemCall"; } - - virtual ~SystemCall() { kcout << "SystemCall::~SystemCall"; } +#define kVirtualAddressStartOffset 0x100 - SystemCall &operator=(const SystemCall &) = default; - SystemCall(const SystemCall &) = default; - - // Should not be called alone! - virtual bool Exec() const { - kcout << "SystemCall->Exec()"; - return false; - } -}; - -constexpr static inline SSizeT syscall_hash(const char *seed, int mul) { +namespace HCore { +constexpr static inline SSizeT rt_hash_seed(const char *seed, int mul) { SSizeT hash = 0; for (SSizeT idx = 0; seed[idx] != 0; ++idx) { @@ -48,8 +33,6 @@ constexpr static inline SSizeT syscall_hash(const char *seed, int mul) { return hash; } - -bool ke_init_hal(); } // namespace HCore #define kKernelMaxSystemCalls (256) @@ -61,7 +44,6 @@ extern HCore::Array