diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-11-20 08:42:45 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-11-20 08:42:45 +0100 |
| commit | e718262c5e5163378ef92469db9b94908dccf12b (patch) | |
| tree | 98da3dbd414c14ff86e1d1c0f459285b78f63ec8 /dev/ZKAKit/KernelKit/LPC.h | |
| parent | ade3a2578ca8d6836b8e73160455df80d49cf045 (diff) | |
ADD: Add CoreBoot header, need to add missing fields for specific platforms.
Diffstat (limited to 'dev/ZKAKit/KernelKit/LPC.h')
| -rw-r--r-- | dev/ZKAKit/KernelKit/LPC.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/dev/ZKAKit/KernelKit/LPC.h b/dev/ZKAKit/KernelKit/LPC.h index bbb14c05..ff19ec8a 100644 --- a/dev/ZKAKit/KernelKit/LPC.h +++ b/dev/ZKAKit/KernelKit/LPC.h @@ -15,10 +15,16 @@ #define ErrLocalFailed() (Kernel::UserProcessScheduler::The().GetCurrentProcess().Leak().GetLocalCode() != Kernel::kErrorSuccess) #define ErrLocal() (Kernel::UserProcessScheduler::The().GetCurrentProcess().Leak().GetLocalCode()) +#define ErrGlobalIsOk() (Kernel::kErrorLocalNumber == Kernel::kErrorSuccess) +#define ErrGlobalFailed() (Kernel::kErrorLocalNumber != Kernel::kErrorSuccess) +#define ErrGlobal() (Kernel::kErrorLocalNumber) + namespace Kernel { typedef Int32 HError; + inline HError kErrorLocalNumber = 0UL; + inline constexpr HError kErrorSuccess = 0; inline constexpr HError kErrorExecutable = 33; inline constexpr HError kErrorExecutableLib = 34; |
