summaryrefslogtreecommitdiffhomepage
path: root/Private/ArchKit
diff options
context:
space:
mode:
authoramlal <amlal@el-mahrouss-logic.com>2024-03-21 00:38:52 +0100
committeramlal <amlal@el-mahrouss-logic.com>2024-03-21 00:38:52 +0100
commit333fed96b7ccd3ee4f5f097445408dde34d330db (patch)
treea1c9894b26bd81c2e762b5487e04601b357682f2 /Private/ArchKit
parentf48c5b2cda43241919d3ea1b263bef01e014c537 (diff)
Kernel: See below.
- Fix kernel heap, made it better. - Fix System.Core, made it better. Signed-off-by: amlal <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'Private/ArchKit')
-rw-r--r--Private/ArchKit/ArchKit.hpp24
1 files changed, 3 insertions, 21 deletions
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 <SSizeT ID>
-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<RET>()";
- 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<rt_syscall_proc,
kSyscalls;
EXTERN_C HCore::Void rt_wait_400ns();
-EXTERN_C HCore::Void ATTRIBUTE(interrupt) rt_syscall_handle(HCore::HAL::StackFramePtr stackFrame);
EXTERN_C HCore::HAL::StackFramePtr rt_get_current_context();
EXTERN_C HCore::Void rt_do_context_switch(HCore::HAL::StackFramePtr stackFrame);