summaryrefslogtreecommitdiffhomepage
path: root/Private/Source
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlalelmahrouss@icloud.com>2024-02-04 17:07:33 +0100
committerAmlal El Mahrouss <amlalelmahrouss@icloud.com>2024-02-04 17:07:33 +0100
commit9fe3b6e1e2447a11644307e83df2b109b24fe0d1 (patch)
treed6eafa0dee897572554d4519b1a9cd878591254c /Private/Source
parenta3d92ea68a74ef3cc3d3c9a34540754869e4d014 (diff)
HCR-11: Support for EFI GOP and SFP.
- SFP stands for Simple Filesystem Protocol, it's always reading through the ESP. - Add GOP for UI code. - Did also patch kernel Virtual Memory code. Signed-off-by: Amlal El Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'Private/Source')
-rw-r--r--Private/Source/NewFS.cxx2
-rw-r--r--Private/Source/RuntimeMain.cxx8
2 files changed, 6 insertions, 4 deletions
diff --git a/Private/Source/NewFS.cxx b/Private/Source/NewFS.cxx
index 2cb4fae9..64c13e11 100644
--- a/Private/Source/NewFS.cxx
+++ b/Private/Source/NewFS.cxx
@@ -43,7 +43,9 @@ NodePtr NewFilesystemManager::CreateAlias(const char* path) {
}
const char* NewFilesystemHelper::Root() { return kFilesystemRoot; }
+
const char* NewFilesystemHelper::UpDir() { return kFilesystemUpDir; }
+
const char NewFilesystemHelper::Separator() { return kFilesystemSeparator; }
} // namespace HCore
diff --git a/Private/Source/RuntimeMain.cxx b/Private/Source/RuntimeMain.cxx
index e042fb82..e26ce13a 100644
--- a/Private/Source/RuntimeMain.cxx
+++ b/Private/Source/RuntimeMain.cxx
@@ -17,16 +17,16 @@
extern "C" void RuntimeMain(
HCore::HEL::HandoverInformationHeader* HandoverHeader) {
- HCore::ke_init_heap();
- HCore::ke_init_ke_heap();
-
kKernelVirtualSize = HandoverHeader->f_VirtualSize;
kKernelVirtualStart = HandoverHeader->f_VirtualStart;
kKernelPhysicalSize = HandoverHeader->f_VirtualSize;
kKernelPhysicalStart = HandoverHeader->f_VirtualStart;
- HCore::HAL::hal_set_page_ptr((HCore::UIntPtr)kKernelVirtualStart);
+ HCore::HAL::hal_page_base((HCore::UIntPtr)kKernelVirtualStart);
+
+ HCore::ke_init_ke_heap();
+ HCore::ke_init_heap();
MUST_PASS(HCore::ke_init_hal());