From 7764e88cd0032cd57fdc17a2906db9d8af9999e1 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sun, 20 Oct 2024 17:53:37 +0200 Subject: IMP: New implementations and improvements. - Heap class allocation have been fixed. - Scheduler allocation has been fixed. - A new better flow for the kernel has been designed. Signed-off-by: Amlal El Mahrouss --- dev/crt/defines.hxx | 6 +++--- dev/crt/src/hal/x86/base_alloc.cxx | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'dev/crt') diff --git a/dev/crt/defines.hxx b/dev/crt/defines.hxx index 8bcceaae..f23bdaa3 100644 --- a/dev/crt/defines.hxx +++ b/dev/crt/defines.hxx @@ -15,9 +15,9 @@ typedef void* ptr_type; typedef __SIZE_TYPE__ size_type; -typedef void* voidptr_t; -typedef void* any_t; -typedef char* caddr_t; +typedef void* voidptr_t; +typedef void* any_t; +typedef char* caddr_t; #ifndef NULL #define NULL ((voidptr_t)0) diff --git a/dev/crt/src/hal/x86/base_alloc.cxx b/dev/crt/src/hal/x86/base_alloc.cxx index c9634dbd..55a53c9d 100644 --- a/dev/crt/src/hal/x86/base_alloc.cxx +++ b/dev/crt/src/hal/x86/base_alloc.cxx @@ -20,7 +20,7 @@ void* operator new(size_t length) : "=r"(ptr)); if (!ptr) - std::__throw_bad_alloc(); + std::__throw_bad_alloc(); return ptr; } @@ -35,7 +35,7 @@ void* operator new[](size_t length) : "=r"(ptr)); if (!ptr) - std::__throw_bad_alloc(); + std::__throw_bad_alloc(); return ptr; } -- cgit v1.2.3