summaryrefslogtreecommitdiffhomepage
path: root/dev/zba/BootKit/Thread.hxx
diff options
context:
space:
mode:
authorAmlal <amlal@el-mahrouss-logic.com>2024-09-22 17:46:11 +0200
committerAmlal <amlal@el-mahrouss-logic.com>2024-09-22 17:46:11 +0200
commit8719b4570a2d10dd49a0d3a47e24f5c55bdda85e (patch)
treeba095740888f3768e08b2ea058b0ea6da2d0403d /dev/zba/BootKit/Thread.hxx
parent45944b3d2dab04b763fcc6d10164fe8069e60b08 (diff)
:boom: A big refactor on the filesystem structure.
Signed-off-by: Amlal <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'dev/zba/BootKit/Thread.hxx')
-rw-r--r--dev/zba/BootKit/Thread.hxx42
1 files changed, 42 insertions, 0 deletions
diff --git a/dev/zba/BootKit/Thread.hxx b/dev/zba/BootKit/Thread.hxx
new file mode 100644
index 00000000..13bd558a
--- /dev/null
+++ b/dev/zba/BootKit/Thread.hxx
@@ -0,0 +1,42 @@
+/* -------------------------------------------
+
+ Copyright ZKA Technologies.
+
+------------------------------------------- */
+
+#pragma once
+
+#include <KernelKit/PE.hxx>
+#include <KernelKit/MSDOS.hxx>
+#include <FirmwareKit/Handover.hxx>
+
+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