diff options
| author | Amlal <amlal.elmahrouss@icloud.com> | 2025-02-14 21:05:55 +0100 |
|---|---|---|
| committer | Amlal <amlal.elmahrouss@icloud.com> | 2025-02-14 21:05:55 +0100 |
| commit | cb1c2ac48b29309406580f506765585b13f59852 (patch) | |
| tree | c575d6fb72c13aec58698e5eb685915baeb10f2e | |
| parent | 6fa88c659e614eaf5eae2caa7c8305f6a8769742 (diff) | |
ADD: MAJOR: Don't use POSIX. Fix LPC. Add SignalKit.
Signed-off-by: Amlal <amlal.elmahrouss@icloud.com>
| -rw-r--r-- | dev/Kernel/HALKit/AMD64/HalCoreInterruptHandlerAMD64.cc | 2 | ||||
| -rw-r--r-- | dev/Kernel/KernelKit/LPC.h | 2 | ||||
| -rw-r--r-- | dev/Kernel/POSIXKit/POSIX.h | 11 | ||||
| -rw-r--r-- | dev/Kernel/SignalKit/Signals.h (renamed from dev/Kernel/POSIXKit/Signals.h) | 6 | ||||
| -rw-r--r-- | dev/LibSCI/LPC.h | 2 |
5 files changed, 5 insertions, 18 deletions
diff --git a/dev/Kernel/HALKit/AMD64/HalCoreInterruptHandlerAMD64.cc b/dev/Kernel/HALKit/AMD64/HalCoreInterruptHandlerAMD64.cc index 63ed2a21..75219dc6 100644 --- a/dev/Kernel/HALKit/AMD64/HalCoreInterruptHandlerAMD64.cc +++ b/dev/Kernel/HALKit/AMD64/HalCoreInterruptHandlerAMD64.cc @@ -7,7 +7,7 @@ #include <ArchKit/ArchKit.h> #include <KernelKit/UserProcessScheduler.h> #include <NewKit/KString.h> -#include <POSIXKit/Signals.h> +#include <SignalKit/Signals.h> STATIC BOOL kIsScheduling = NO; diff --git a/dev/Kernel/KernelKit/LPC.h b/dev/Kernel/KernelKit/LPC.h index 2eae8b6f..a962bc05 100644 --- a/dev/Kernel/KernelKit/LPC.h +++ b/dev/Kernel/KernelKit/LPC.h @@ -58,7 +58,7 @@ namespace Kernel inline constexpr HError kErrorCDTrayBroken = 62; inline constexpr HError kErrorUnrecoverableDisk = 63; inline constexpr HError kErrorFileLocked = 64; - inline constexpr HError kErrorUnimplemented = 0; + inline constexpr HError kErrorUnimplemented = -1; /// @brief Raises a bug check stop code. Void err_bug_check_raise(Void) noexcept; diff --git a/dev/Kernel/POSIXKit/POSIX.h b/dev/Kernel/POSIXKit/POSIX.h deleted file mode 100644 index 69834843..00000000 --- a/dev/Kernel/POSIXKit/POSIX.h +++ /dev/null @@ -1,11 +0,0 @@ -/* -------------------------------------------
-
- Copyright (C) 2024-2025, Amlal EL Mahrouss, all rights reserved.
-
-------------------------------------------- */
-
-#pragma once
-
-#include <KernelKit/UserProcessScheduler.h>
-#include <KernelKit/PEFCodeMgr.h>
-#include <SystemKit/SwapDisk.h>
diff --git a/dev/Kernel/POSIXKit/Signals.h b/dev/Kernel/SignalKit/Signals.h index 684a8ced..2e32e57f 100644 --- a/dev/Kernel/POSIXKit/Signals.h +++ b/dev/Kernel/SignalKit/Signals.h @@ -6,11 +6,9 @@ #pragma once -/** https://pubs.opengroup.org/onlinepubs/009695399/basedefs/signal.h.html */ +#include <NewKit/Defines.h> -#include <POSIXKit/POSIX.h> - -typedef Kernel::UInt32 signal_t; +typedef Kernel::UInt32 SignalKind; #define SIGKILL 0 #define SIGPAUS 1 diff --git a/dev/LibSCI/LPC.h b/dev/LibSCI/LPC.h index 83bcd824..8631f3de 100644 --- a/dev/LibSCI/LPC.h +++ b/dev/LibSCI/LPC.h @@ -50,7 +50,7 @@ inline constexpr ErrObject kErrorInvalidCreds = 61; inline constexpr ErrObject kErrorCDTrayBroken = 62; inline constexpr ErrObject kErrorUnrecoverableDisk = 63; inline constexpr ErrObject kErrorFileLocked = 64; -inline constexpr ErrObject kErrorUnimplemented = 0; +inline constexpr ErrObject kErrorUnimplemented = -1; /// @brief The last error reported by the system to the process. IMPORT_C ErrObject kLastError; |
