summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/DebuggerKit/Common.inl2
-rw-r--r--include/DebuggerKit/DebuggerContract.h4
-rw-r--r--include/DebuggerKit/NeKernelContract.h2
-rw-r--r--include/GenericsLibrary/pstd.nhh13
4 files changed, 16 insertions, 5 deletions
diff --git a/include/DebuggerKit/Common.inl b/include/DebuggerKit/Common.inl
index f09a9e2..de83015 100644
--- a/include/DebuggerKit/Common.inl
+++ b/include/DebuggerKit/Common.inl
@@ -1,4 +1,4 @@
-// Copyright 2024-2025, Amlal El Mahrouss (amlal@nekernel.org)
+// Copyright 2024-2026, Amlal El Mahrouss (amlal@nekernel.org)
// Licensed under the Apache License, Version 2.0 (See accompanying
// file LICENSE or copy at http://www.apache.org/licenses/LICENSE-2.0)
// Official repository: https://github.com/nekernel-org/nectar
diff --git a/include/DebuggerKit/DebuggerContract.h b/include/DebuggerKit/DebuggerContract.h
index ab808e8..971c80a 100644
--- a/include/DebuggerKit/DebuggerContract.h
+++ b/include/DebuggerKit/DebuggerContract.h
@@ -1,4 +1,4 @@
-// Copyright 2024-2025, Amlal El Mahrouss (amlal@nekernel.org)
+// Copyright 2024-2026, Amlal El Mahrouss (amlal@nekernel.org)
// Licensed under the Apache License, Version 2.0 (See accompanying
// file LICENSE or copy at http://www.apache.org/licenses/LICENSE-2.0)
// Official repository: https://github.com/nekernel-org/nectar
@@ -36,7 +36,7 @@ class IDebuggerContract {
using BreakpointMap = std::unordered_map<uintptr_t, uintptr_t>;
- virtual BreakpointMap& Get() { return mBreakpoints; }
+ virtual BreakpointMap& Leak() { return mBreakpoints; }
protected:
ProcessID mPid{(ProcessID) ~0};
diff --git a/include/DebuggerKit/NeKernelContract.h b/include/DebuggerKit/NeKernelContract.h
index 960e0c2..7b8df64 100644
--- a/include/DebuggerKit/NeKernelContract.h
+++ b/include/DebuggerKit/NeKernelContract.h
@@ -1,4 +1,4 @@
-// Copyright 2024-2025, Amlal El Mahrouss (amlal@nekernel.org)
+// Copyright 2024-2026, Amlal El Mahrouss (amlal@nekernel.org)
// Licensed under the Apache License, Version 2.0 (See accompanying
// file LICENSE or copy at http://www.apache.org/licenses/LICENSE-2.0)
// Official repository: https://github.com/nekernel-org/nectar
diff --git a/include/GenericsLibrary/pstd.nhh b/include/GenericsLibrary/pstd.nhh
index 5df5232..fd0b196 100644
--- a/include/GenericsLibrary/pstd.nhh
+++ b/include/GenericsLibrary/pstd.nhh
@@ -5,10 +5,21 @@
#pragma once
+#define PALLOC_INVALID 0
+
extern __nrt_palloc;
+extern __nrt_pfree;
-#define PALLOC_INVALID 0
+extern __nrt_pthread_new;
+extern __nrt_pthread_kill;
+
+//@ Parallel free
+let pfree(let ptr)
+{
+ return __nrt_pfree(ptr);
+}
+//@ Parallel alloc (bytes)
let palloc(let type, let sz, let align := 0)
{
return __nrt_palloc(type, sz, align);