summaryrefslogtreecommitdiffhomepage
path: root/Private/NewBoot/BootKit
diff options
context:
space:
mode:
Diffstat (limited to 'Private/NewBoot/BootKit')
-rw-r--r--Private/NewBoot/BootKit/Boot.hxx (renamed from Private/NewBoot/BootKit/Boot.hpp)2
-rw-r--r--Private/NewBoot/BootKit/EPM.hxx12
-rw-r--r--Private/NewBoot/BootKit/Processor.hxx24
-rw-r--r--Private/NewBoot/BootKit/Protocol.hxx30
4 files changed, 67 insertions, 1 deletions
diff --git a/Private/NewBoot/BootKit/Boot.hpp b/Private/NewBoot/BootKit/Boot.hxx
index 6df2e08f..07148702 100644
--- a/Private/NewBoot/BootKit/Boot.hpp
+++ b/Private/NewBoot/BootKit/Boot.hxx
@@ -66,4 +66,4 @@ enum
#define BK_START_KERNEL (0x10000000)
-long long int BStrLen(const char *ptr);
+hCore::SizeT BStrLen(const char *ptr);
diff --git a/Private/NewBoot/BootKit/EPM.hxx b/Private/NewBoot/BootKit/EPM.hxx
new file mode 100644
index 00000000..803d500c
--- /dev/null
+++ b/Private/NewBoot/BootKit/EPM.hxx
@@ -0,0 +1,12 @@
+/*
+ * ========================================================
+ *
+ * h-core
+ * Copyright 2024, Mahrouss Logic, all rights reserved.
+ *
+ * ========================================================
+ */
+
+#pragma once
+
+#include <HALKit/EPM.hxx>
diff --git a/Private/NewBoot/BootKit/Processor.hxx b/Private/NewBoot/BootKit/Processor.hxx
new file mode 100644
index 00000000..d4143094
--- /dev/null
+++ b/Private/NewBoot/BootKit/Processor.hxx
@@ -0,0 +1,24 @@
+/*
+ * ========================================================
+ *
+ * h-core
+ * Copyright 2024, Mahrouss Logic, all rights reserved.
+ *
+ * ========================================================
+ */
+
+#pragma once
+
+/**
+ @file Processor.hxx
+ @brief Processor specific code.
+*/
+
+#ifdef __x86_64__
+
+extern "C" void rt_halt();
+extern "C" void rt_cli();
+extern "C" void rt_sti();
+extern "C" void rt_cld();
+
+#endif /* ifdef __x86_64__ */
diff --git a/Private/NewBoot/BootKit/Protocol.hxx b/Private/NewBoot/BootKit/Protocol.hxx
new file mode 100644
index 00000000..7e292c7d
--- /dev/null
+++ b/Private/NewBoot/BootKit/Protocol.hxx
@@ -0,0 +1,30 @@
+/*
+ * ========================================================
+ *
+ * NewBoot
+ * Copyright 2024 Mahrouss Logic, all rights reserved.
+ *
+ * ========================================================
+ */
+
+#pragma once
+
+#include <EFIKit/EFI.hxx>
+
+namespace HEL
+{
+using namespace hCore;
+
+struct HandoverHeader final
+{
+ Int32 magic;
+ Int32 type;
+ Int32 arch;
+ // WIP
+};
+} // namespace HEL
+
+#define kHandoverMagic 0xBAD55
+
+#define kBaseHandoverStruct 0x10000000
+#define kHandoverStructSz sizeof(HEL::HandoverHeader)