diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2026-03-02 14:53:33 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2026-03-02 14:53:33 +0100 |
| commit | 7d9fb7e4244d996f744233be046d9aa90afa8964 (patch) | |
| tree | eccd99f623291e4abe8bebb46936e035060eb6d8 /include | |
| parent | fe6ba8bd1a59f48000e7cd04a5f7ae10592dc25b (diff) | |
chore: GL improvements of pstd, and DebuggerKit tweaks.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/DebuggerKit/Common.inl | 2 | ||||
| -rw-r--r-- | include/DebuggerKit/DebuggerContract.h | 4 | ||||
| -rw-r--r-- | include/DebuggerKit/NeKernelContract.h | 2 | ||||
| -rw-r--r-- | include/GenericsLibrary/pstd.nhh | 13 |
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); |
