summaryrefslogtreecommitdiffhomepage
path: root/dev/ZKAKit/KernelKit/LPC.h
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-11-20 08:42:45 +0100
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-11-20 08:42:45 +0100
commite718262c5e5163378ef92469db9b94908dccf12b (patch)
tree98da3dbd414c14ff86e1d1c0f459285b78f63ec8 /dev/ZKAKit/KernelKit/LPC.h
parentade3a2578ca8d6836b8e73160455df80d49cf045 (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.h6
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;