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 --- Source/KMain.cxx | 2 +- Source/String.cxx | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'Source') diff --git a/Source/KMain.cxx b/Source/KMain.cxx index 0a614171..8a96aee0 100644 --- a/Source/KMain.cxx +++ b/Source/KMain.cxx @@ -11,7 +11,7 @@ #include #include -extern "C" void __KernelMain(hCore::VoidPtr this_image) +extern "C" void Main(hCore::VoidPtr this_image) { MUST_PASS(hCore::initialize_hardware_components()); diff --git a/Source/String.cxx b/Source/String.cxx index 86194812..3ad2a0cd 100644 --- a/Source/String.cxx +++ b/Source/String.cxx @@ -7,7 +7,6 @@ * ======================================================== */ -#include #include #include @@ -103,7 +102,6 @@ namespace hCore if (!to_str(result, sizeof(int), i)) { - delete[] ret; return ("-1"); } @@ -211,7 +209,6 @@ namespace hCore if (lhs && rhs && cur < string_length(lhs)) { - SizeT sz_lhs = string_length(lhs); SizeT sz_rhs = string_length(rhs); rt_copy_memory(rhs, lhs + cur, sz_rhs); -- cgit v1.2.3