summaryrefslogtreecommitdiffhomepage
path: root/dev/kernel/ArchKit
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-05-29 10:51:53 +0200
committerGitHub <noreply@github.com>2025-05-29 10:51:53 +0200
commit5c0bb7ee7b1b0fee02cc179fb21f4c57a61d6c2d (patch)
treecb17577bcdc9714c97a84ce417a075117097f146 /dev/kernel/ArchKit
parentd608230b1350b064ceb01e6572519b108f6139b0 (diff)
parent3167f59dbb401d6a79b1524537e04218baf49ee3 (diff)
Merge pull request #32 from nekernel-org/dev
0.0.2e3
Diffstat (limited to 'dev/kernel/ArchKit')
-rw-r--r--dev/kernel/ArchKit/ArchKit.h22
1 files changed, 13 insertions, 9 deletions
diff --git a/dev/kernel/ArchKit/ArchKit.h b/dev/kernel/ArchKit/ArchKit.h
index 41a36e69..09839d98 100644
--- a/dev/kernel/ArchKit/ArchKit.h
+++ b/dev/kernel/ArchKit/ArchKit.h
@@ -6,9 +6,9 @@
#pragma once
-#include <NewKit/Array.h>
-#include <NewKit/Defines.h>
-#include <NewKit/Function.h>
+#include <NeKit/Array.h>
+#include <NeKit/Defines.h>
+#include <NeKit/Function.h>
#include <FirmwareKit/Handover.h>
@@ -29,8 +29,8 @@
#define kMaxDispatchCallCount (512U)
namespace Kernel {
-inline SSizeT rt_hash_seed(const Char* seed, int mul) {
- SSizeT hash = 0;
+inline SizeT rt_hash_seed(const Char* seed, UInt32 mul) {
+ SizeT hash = 0;
for (SSizeT idx = 0; seed[idx] != 0; ++idx) {
hash += seed[idx];
@@ -69,7 +69,7 @@ namespace HAL {
typedef Kernel::Void (*rt_syscall_proc)(Kernel::VoidPtr);
-struct HalSyscallEntry final {
+struct HAL_DISPATCH_ENTRY final {
Kernel::Int64 fHash;
Kernel::Bool fHooked;
rt_syscall_proc fProc;
@@ -77,8 +77,12 @@ struct HalSyscallEntry final {
operator bool() { return fHooked; }
};
-inline Kernel::Array<HalSyscallEntry, kMaxDispatchCallCount> kSysCalls;
+inline Kernel::Array<HAL_DISPATCH_ENTRY, kMaxDispatchCallCount> kSysCalls;
-inline Kernel::Array<HalSyscallEntry, kMaxDispatchCallCount> kKernCalls;
+inline Kernel::Array<HAL_DISPATCH_ENTRY, kMaxDispatchCallCount> kKernCalls;
-EXTERN_C Kernel::HAL::StackFramePtr mp_get_current_context(Kernel::Int64 pid);
+#ifdef __NE_VIRTUAL_MEMORY_SUPPORT__
+
+inline Kernel::VoidPtr kKernelVM = nullptr;
+
+#endif // __NE_VIRTUAL_MEMORY_SUPPORT__ \ No newline at end of file