summaryrefslogtreecommitdiffhomepage
path: root/Boot/BootKit/STB.hxx
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-07-09 20:51:20 +0200
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-07-09 20:52:00 +0200
commitdfaf137915094e7ba72f7d7f1f57dc5158d1b6ab (patch)
tree802a5bf263d606b59bb52d5e7434a04c8644d07e /Boot/BootKit/STB.hxx
parent891245c6c9a78cea6074e336d1b04a2264b2fcce (diff)
MHR-36: A set of major fixes for bootloader and kernel alongside new
implementations. - Implement realloc for kernel scheduler improvements. - Fixed readAll on bootloader's BFileReader. - Add resources for zeta installation. - Add STB header. - Process Heap which replaced the previous User Heap. Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'Boot/BootKit/STB.hxx')
-rw-r--r--Boot/BootKit/STB.hxx25
1 files changed, 25 insertions, 0 deletions
diff --git a/Boot/BootKit/STB.hxx b/Boot/BootKit/STB.hxx
new file mode 100644
index 00000000..b94572d7
--- /dev/null
+++ b/Boot/BootKit/STB.hxx
@@ -0,0 +1,25 @@
+/* -------------------------------------------
+
+ Copyright Zeta Electronics Corporation
+
+------------------------------------------- */
+
+#pragma once
+
+#define STBI_NO_STDIO 1
+#define STBI_NO_SIMD 1
+#define STBI_NO_THREAD_LOCALS 1
+#define STBI_NO_LINEAR 1
+
+#define STBI_ONLY_PNG 1
+#define STBI_ONLY_JPEG 1
+#define STBI_ONLY_BMP 1
+#define STBI_ONLY_GIF 1
+
+#define STBI_ASSERT(x) MUST_PASS(x)
+#define STBI_MALLOC(x) Kernel::ke_new_ke_heap(x, true, true)
+#define STBI_REALLOC(p, x) Kernel::ke_update_ke_heap(p, x);
+#define STBI_FREE(x) Kernel::ke_delete_ke_heap(x)
+#define STB_IMAGE_IMPLEMENTATION 1
+
+#include <BootKit/Vendor/stb_image.hxx>