From 1ce16b83dba0326b13dfa3399c1497ac6b1af14d Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Wed, 27 Mar 2024 17:38:23 +0100 Subject: Kernel && Developer: Developer: - Rework System API to use C instead of C++ - Add new calls in Thread.h - Documented code. Kernel: - Rework handover stage, separated the Processor specific code from the cross platform code. Signed-off-by: Amlal El Mahrouss --- Public/Developer/System.Core/Sources/CRT0.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Public/Developer/System.Core/Sources/CRT0.c (limited to 'Public/Developer/System.Core/Sources/CRT0.c') diff --git a/Public/Developer/System.Core/Sources/CRT0.c b/Public/Developer/System.Core/Sources/CRT0.c new file mode 100644 index 00000000..03aa62b8 --- /dev/null +++ b/Public/Developer/System.Core/Sources/CRT0.c @@ -0,0 +1,14 @@ +/** =========================================== + (C) Mahrouss Logic + ===========================================*/ + +#include + +/// @brief Inits the library. +/// @return if it was succesful or not. +CA_EXTERN_C DWordType __start(VoidType) { + kApplicationObject = RtGetAppObject(); + CA_MUST_PASS(kApplicationObject); + + return 0; +} \ No newline at end of file -- cgit v1.2.3