summaryrefslogtreecommitdiffhomepage
path: root/dev/zba/BootKit/Thread.h
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-10-21 20:23:36 +0200
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-10-21 20:23:36 +0200
commitd48cbe75ef29a9c67c9d176bf58e56ea6448fb9e (patch)
tree89cbd6b7e23802f92bf3158868f4dc33c088e516 /dev/zba/BootKit/Thread.h
parent21b3da78f806d6765f9dffa6a84c21346f171cee (diff)
IMP: Major refactor of header and source files extensions.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/zba/BootKit/Thread.h')
-rw-r--r--dev/zba/BootKit/Thread.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/dev/zba/BootKit/Thread.h b/dev/zba/BootKit/Thread.h
new file mode 100644
index 00000000..6923854b
--- /dev/null
+++ b/dev/zba/BootKit/Thread.h
@@ -0,0 +1,42 @@
+/* -------------------------------------------
+
+ Copyright ZKA Web Services Co.
+
+------------------------------------------- */
+
+#pragma once
+
+#include <KernelKit/PE.h>
+#include <KernelKit/MSDOS.h>
+#include <FirmwareKit/Handover.h>
+
+namespace Boot
+{
+ using namespace Kernel;
+
+ class BThread;
+
+ /// @brief Program loader class
+ /// @package nl.zeta.boot.api
+ class BThread final
+ {
+ public:
+ explicit BThread() = delete;
+ ~BThread() = default;
+
+ explicit BThread(Kernel::VoidPtr blob);
+
+ BThread& operator=(const BThread&) = default;
+ BThread(const BThread&) = default;
+
+ void Start(HEL::HANDOVER_INFO_HEADER* handover);
+ const char* GetName();
+ void SetName(const char* name);
+ bool IsValid();
+
+ private:
+ Char fBlobName[255] = {"BootThread"};
+ VoidPtr fStartAddress{nullptr};
+ VoidPtr fBlob{nullptr};
+ };
+} // namespace Boot