summaryrefslogtreecommitdiffhomepage
path: root/newBoot/BootKit
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-01-26 15:37:37 +0100
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-01-26 15:37:37 +0100
commit0476248f648ccddea9bdf9bae9095c3231e6643d (patch)
tree61280ff1ad93b384a9697c0ee9d60854e12e58e9 /newBoot/BootKit
parentae89bf9564c59ea3aee10f175d473e562af793f8 (diff)
Kernel: Retarget AMD64 according to spec.
Kernel/Toolchain: Now move hKernel to /System/ when building the system. MPT: Fix API. newBoot: This is the priority, get a standard file layout to load the kernel at BK_START_KERNEL (0x00080000) Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'newBoot/BootKit')
-rw-r--r--newBoot/BootKit/Boot.hpp19
1 files changed, 13 insertions, 6 deletions
diff --git a/newBoot/BootKit/Boot.hpp b/newBoot/BootKit/Boot.hpp
index fabc6186..af86ce4c 100644
--- a/newBoot/BootKit/Boot.hpp
+++ b/newBoot/BootKit/Boot.hpp
@@ -22,9 +22,13 @@ enum
kSegmentBss = 6,
};
-class BTextWriter final
+/**
+ * @brief BootKit Text Writer class
+ * Writes to VGA.
+ */
+class BKTextWriter final
{
- volatile UInt16* fWhere;
+ volatile UInt16* fWhere{ nullptr };
public:
void WriteString(const char* c,
@@ -40,12 +44,12 @@ public:
int y);
public:
- BTextWriter() = default;
- ~BTextWriter() = default;
+ BKTextWriter() = default;
+ ~BKTextWriter() = default;
public:
- BTextWriter& operator=(const BTextWriter&) = default;
- BTextWriter(const BTextWriter&) = default;
+ BKTextWriter& operator=(const BKTextWriter&) = default;
+ BKTextWriter(const BKTextWriter&) = default;
};
@@ -68,3 +72,6 @@ enum
kYellow,
kWhite,
};
+
+#define BK_START_KERNEL (0x00080000)
+