summaryrefslogtreecommitdiffhomepage
path: root/dev/LibSCI
diff options
context:
space:
mode:
Diffstat (limited to 'dev/LibSCI')
-rw-r--r--dev/LibSCI/CompilerHint.h2
-rw-r--r--dev/LibSCI/GPU.h2
-rw-r--r--dev/LibSCI/LPC.h2
-rw-r--r--dev/LibSCI/Macros.h8
-rw-r--r--dev/LibSCI/SCI.h21
-rw-r--r--dev/LibSCI/src/GPU.cc2
-rw-r--r--dev/LibSCI/src/LPC.cc2
-rw-r--r--dev/LibSCI/src/LibSCI+IO.asm2
-rw-r--r--dev/LibSCI/src/Makefile2
-rw-r--r--dev/LibSCI/src/SCI.cc2
10 files changed, 35 insertions, 10 deletions
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 <CompilerHint.h>
#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.
------------------------------------------- */