From 1be243700efc9e36060c5fb65c951d5db6b98e94 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Tue, 30 Jan 2024 17:59:15 +0100 Subject: Add ROADMAP details, add EFI Library for bootloader. Add assignee to code in MailMap. Signed-off-by: Amlal El Mahrouss --- Private/NewBoot/BootKit/Boot.hxx | 81 ------------------------------------- Private/NewBoot/BootKit/BootKit.hxx | 81 +++++++++++++++++++++++++++++++++++++ 2 files changed, 81 insertions(+), 81 deletions(-) delete mode 100644 Private/NewBoot/BootKit/Boot.hxx create mode 100644 Private/NewBoot/BootKit/BootKit.hxx (limited to 'Private/NewBoot/BootKit') diff --git a/Private/NewBoot/BootKit/Boot.hxx b/Private/NewBoot/BootKit/Boot.hxx deleted file mode 100644 index 70607a9c..00000000 --- a/Private/NewBoot/BootKit/Boot.hxx +++ /dev/null @@ -1,81 +0,0 @@ -/* - * ======================================================== - * - * NewBoot - * Copyright 2024 Mahrouss Logic, all rights reserved. - * - * ======================================================== - */ - -/***********************************************************************************/ -/// @file Boot.hxx -/// @brief Bootloader API. -/***********************************************************************************/ - -#pragma once - -#include - -using namespace HCore; - -typedef void *PEFImage; - -enum { - kSegmentCode = 2, - kSegmentData = 4, - kSegmentBss = 6, -}; - -/** - * @brief BootKit Text Writer class - * Writes to VGA. - */ -class BKTextWriter final { - volatile UInt16 *fWhere{nullptr}; - - public: - void WriteString(const char *c, unsigned char forecolour, - unsigned char backcolour, int x, int y); - - void WriteCharacter(char c, unsigned char forecolour, - unsigned char backcolour, int x, int y); - - public: - BKTextWriter() = default; - ~BKTextWriter() = default; - - public: - BKTextWriter &operator=(const BKTextWriter &) = default; - BKTextWriter(const BKTextWriter &) = default; -}; - -enum { - kBlack, - kBlue, - kGreen, - kCyan, - kRed, - kMagenta, - kBrown, - kLightGray, - kDarkGray, - kLightBlue, - kLightGreen, - kLightCyan, - kLightRed, - kLightMagenta, - kYellow, - kWhite, -}; - -#define BK_START_KERNEL (0x8000000) - -HCore::SizeT BStrLen(const char *ptr); -HCore::SizeT BSetMem(char *src, const char byte, const HCore::SizeT len); - -/***********************************************************************************/ -/// Include other APIs. -/***********************************************************************************/ - -#include -#include diff --git a/Private/NewBoot/BootKit/BootKit.hxx b/Private/NewBoot/BootKit/BootKit.hxx new file mode 100644 index 00000000..70607a9c --- /dev/null +++ b/Private/NewBoot/BootKit/BootKit.hxx @@ -0,0 +1,81 @@ +/* + * ======================================================== + * + * NewBoot + * Copyright 2024 Mahrouss Logic, all rights reserved. + * + * ======================================================== + */ + +/***********************************************************************************/ +/// @file Boot.hxx +/// @brief Bootloader API. +/***********************************************************************************/ + +#pragma once + +#include + +using namespace HCore; + +typedef void *PEFImage; + +enum { + kSegmentCode = 2, + kSegmentData = 4, + kSegmentBss = 6, +}; + +/** + * @brief BootKit Text Writer class + * Writes to VGA. + */ +class BKTextWriter final { + volatile UInt16 *fWhere{nullptr}; + + public: + void WriteString(const char *c, unsigned char forecolour, + unsigned char backcolour, int x, int y); + + void WriteCharacter(char c, unsigned char forecolour, + unsigned char backcolour, int x, int y); + + public: + BKTextWriter() = default; + ~BKTextWriter() = default; + + public: + BKTextWriter &operator=(const BKTextWriter &) = default; + BKTextWriter(const BKTextWriter &) = default; +}; + +enum { + kBlack, + kBlue, + kGreen, + kCyan, + kRed, + kMagenta, + kBrown, + kLightGray, + kDarkGray, + kLightBlue, + kLightGreen, + kLightCyan, + kLightRed, + kLightMagenta, + kYellow, + kWhite, +}; + +#define BK_START_KERNEL (0x8000000) + +HCore::SizeT BStrLen(const char *ptr); +HCore::SizeT BSetMem(char *src, const char byte, const HCore::SizeT len); + +/***********************************************************************************/ +/// Include other APIs. +/***********************************************************************************/ + +#include +#include -- cgit v1.2.3