From 0476248f648ccddea9bdf9bae9095c3231e6643d Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Fri, 26 Jan 2024 15:37:37 +0100 Subject: 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 --- newBoot/BootKit/Boot.hpp | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'newBoot/BootKit') 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) + -- cgit v1.2.3