From 99826c21b9da1c3a74fd8b3ebc08c7f8dbfadd30 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Tue, 14 Jan 2025 11:52:02 +0100 Subject: T& Labs's ZKA, Multi-Processor Operating System. Signed-off-by: Amlal El Mahrouss --- dev/LibSCI/CompilerHint.h | 2 +- dev/LibSCI/GPU.h | 2 +- dev/LibSCI/LPC.h | 2 +- dev/LibSCI/Macros.h | 8 +++++++- dev/LibSCI/SCI.h | 21 ++++++++++++++++++++- dev/LibSCI/src/GPU.cc | 2 +- dev/LibSCI/src/LPC.cc | 2 +- dev/LibSCI/src/LibSCI+IO.asm | 2 +- dev/LibSCI/src/Makefile | 2 +- dev/LibSCI/src/SCI.cc | 2 +- 10 files changed, 35 insertions(+), 10 deletions(-) (limited to 'dev/LibSCI') diff --git a/dev/LibSCI/CompilerHint.h b/dev/LibSCI/CompilerHint.h index a452bd2d..706f1eed 100644 --- a/dev/LibSCI/CompilerHint.h +++ b/dev/LibSCI/CompilerHint.h @@ -1,6 +1,6 @@ /* ------------------------------------------- - Copyright (C) 2024, t& Corporation, all rights reserved. + Copyright (C) 2024, t& Labs, all rights reserved. ------------------------------------------- */ diff --git a/dev/LibSCI/GPU.h b/dev/LibSCI/GPU.h index 43283591..e043634a 100644 --- a/dev/LibSCI/GPU.h +++ b/dev/LibSCI/GPU.h @@ -1,6 +1,6 @@ /* ------------------------------------------- -Copyright (C) 2024, t& Corporation, all rights reserved. +Copyright (C) 2024, t& Labs, all rights reserved. File: GPU.h Purpose: GFX System Calls. diff --git a/dev/LibSCI/LPC.h b/dev/LibSCI/LPC.h index 5d45126c..d8440c08 100644 --- a/dev/LibSCI/LPC.h +++ b/dev/LibSCI/LPC.h @@ -1,6 +1,6 @@ /* ------------------------------------------- - Copyright (C) 2024, t& Corporation, all rights reserved. + Copyright (C) 2024, t& Labs, all rights reserved. ------------------------------------------- */ diff --git a/dev/LibSCI/Macros.h b/dev/LibSCI/Macros.h index 284efb6e..2029b5d1 100644 --- a/dev/LibSCI/Macros.h +++ b/dev/LibSCI/Macros.h @@ -1,6 +1,6 @@ /* ------------------------------------------- -Copyright (C) 2024, t& Corporation, all rights reserved. +Copyright (C) 2024, t& Labs, all rights reserved. File: Macros.h Purpose: LibSCI Macros header. @@ -17,11 +17,17 @@ Purpose: LibSCI Macros header. #include #define ATTRIBUTE(X) __attribute__((X)) + #define IMPORT_CXX extern "C++" #define IMPORT_C extern "C" #define DEPRECATED ATTRIBUTE(deprecated) +#define EXIT_SUCCESS 0 +#define EXIT_FAILURE 1 + +#define FILE_MAX_LEN 256 + typedef bool Bool; typedef void Void; diff --git a/dev/LibSCI/SCI.h b/dev/LibSCI/SCI.h index c5ad3066..a50b0901 100644 --- a/dev/LibSCI/SCI.h +++ b/dev/LibSCI/SCI.h @@ -1,6 +1,6 @@ /* ------------------------------------------- -Copyright (C) 2024, t& Corporation, all rights reserved. +Copyright (C) 2024, t& Labs, all rights reserved. File: SCI.h Purpose: System Calls. @@ -123,9 +123,18 @@ IMPORT_C UInt32 MmFillCRC32Heap(_Input VoidPtr heap); /// @brief Copy memory region. IMPORT_C VoidPtr MmCopyMemory(_Input VoidPtr dest, _Input VoidPtr src, _Input SizeT len); +/// @brief Compare memory regions. +IMPORT_C SInt64 MmCmpMemory(_Input VoidPtr dest, _Input VoidPtr src, _Input SizeT len); + /// @brief Fill memory region. IMPORT_C VoidPtr MmFillMemory(_Input VoidPtr dest, _Input SizeT len, _Input UInt8 value); +/// @brief Compare string regions. +IMPORT_C SInt64 MmStrCmp(_Input const Char* dest, _Input const Char* src); + +/// @brief Get length of string. +IMPORT_C SInt64 MmStrLen(const Char* str); + // ------------------------------------------------------------------------ // Error API. // ------------------------------------------------------------------------ @@ -267,4 +276,14 @@ IMPORT_C SInt32 CdOpenTray(Void); IMPORT_C SInt32 CdCloseTray(Void); +// ------------------------------------------------------------------------------------------ // +// Console API. +// ------------------------------------------------------------------------------------------ // + +IMPORT_C SInt32 ConOut(IOObject file /* nullptr to direct to stdout */, const Char* fmt, ...); + +IMPORT_C SInt32 ConIn(IOObject file /* nullptr to direct to stdout */, const Char* fmt, ...); + +IMPORT_C IOObject ConGet(const Char* path); + #endif // ifndef SCIKIT_FOUNDATION_H diff --git a/dev/LibSCI/src/GPU.cc b/dev/LibSCI/src/GPU.cc index c7ba7756..794ceb66 100644 --- a/dev/LibSCI/src/GPU.cc +++ b/dev/LibSCI/src/GPU.cc @@ -1,6 +1,6 @@ /* ------------------------------------------- -Copyright (C) 2024, t& Corporation, all rights reserved. +Copyright (C) 2024, t& Labs, all rights reserved. File: GPU.cc Purpose: GPU Interface. diff --git a/dev/LibSCI/src/LPC.cc b/dev/LibSCI/src/LPC.cc index cbbab195..fe3a2f02 100644 --- a/dev/LibSCI/src/LPC.cc +++ b/dev/LibSCI/src/LPC.cc @@ -1,6 +1,6 @@ /* ------------------------------------------- -Copyright (C) 2024, t& Corporation, all rights reserved. +Copyright (C) 2024, t& Labs, all rights reserved. File: LPC.cc Purpose: Local Procedure Codes. diff --git a/dev/LibSCI/src/LibSCI+IO.asm b/dev/LibSCI/src/LibSCI+IO.asm index ab572b9f..02dfffd9 100644 --- a/dev/LibSCI/src/LibSCI+IO.asm +++ b/dev/LibSCI/src/LibSCI+IO.asm @@ -2,7 +2,7 @@ ;; * ======================================================== ;; * ;; * LibSCI -;; * Copyright (C) 2024, t& Corporation, all rights reserved., all rights reserved. +;; * Copyright (C) 2024, t& Labs, all rights reserved., all rights reserved. ;; * ;; * ======================================================== ;; */ diff --git a/dev/LibSCI/src/Makefile b/dev/LibSCI/src/Makefile index 91a7a3a5..10405827 100644 --- a/dev/LibSCI/src/Makefile +++ b/dev/LibSCI/src/Makefile @@ -1,5 +1,5 @@ ################################################## -# (c) t& Corporation, all rights reserved. +# (c) t& Labs, all rights reserved. # This is the bootloader makefile. ################################################## diff --git a/dev/LibSCI/src/SCI.cc b/dev/LibSCI/src/SCI.cc index 5b78c4e6..f8f2d8a0 100644 --- a/dev/LibSCI/src/SCI.cc +++ b/dev/LibSCI/src/SCI.cc @@ -1,6 +1,6 @@ /* ------------------------------------------- - Copyright (C) 2024, t& Corporation, all rights reserved. + Copyright (C) 2024, t& Labs, all rights reserved. ------------------------------------------- */ -- cgit v1.2.3