diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-10-20 17:53:37 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-10-20 17:53:37 +0200 |
| commit | 7764e88cd0032cd57fdc17a2906db9d8af9999e1 (patch) | |
| tree | a373ed0682c3161ee38b77089bc8fab821304a6b /dev/crt | |
| parent | 22e85ecdb17888268d32997b20e01cc98968cc3d (diff) | |
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 <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/crt')
| -rw-r--r-- | dev/crt/defines.hxx | 6 | ||||
| -rw-r--r-- | dev/crt/src/hal/x86/base_alloc.cxx | 4 |
2 files changed, 5 insertions, 5 deletions
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; } |
