summaryrefslogtreecommitdiffhomepage
path: root/dev/Boot/BootKit
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2025-01-06 20:11:53 +0100
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2025-01-06 20:11:53 +0100
commit98110adc9f47666696e18a6c7c97a3edc89c5d90 (patch)
treee39f76352995abfdcc154637b2dae00ed246d5c7 /dev/Boot/BootKit
parent8c179d8801df7f5f77fe7ec65a0a98b7901dad09 (diff)
ADD: Fix kernel build and bootloader build on aarch64, add syschk for
aarch64. WIP: aarch64 on CoreBoot (EFI is unpractical) Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/Boot/BootKit')
-rw-r--r--dev/Boot/BootKit/BootKit.h1
-rw-r--r--dev/Boot/BootKit/Support.h10
2 files changed, 8 insertions, 3 deletions
diff --git a/dev/Boot/BootKit/BootKit.h b/dev/Boot/BootKit/BootKit.h
index 646cf72f..003d3d9e 100644
--- a/dev/Boot/BootKit/BootKit.h
+++ b/dev/Boot/BootKit/BootKit.h
@@ -389,7 +389,6 @@ namespace Boot
fDiskDev.Write((Char*)&epm_boot, sizeof(BOOT_BLOCK_STRUCT));
- BTextWriter writer;
writer.Write(L"BootZ: Drive has been formatted Successfully.\r");
#endif
diff --git a/dev/Boot/BootKit/Support.h b/dev/Boot/BootKit/Support.h
index 9d662219..37111df3 100644
--- a/dev/Boot/BootKit/Support.h
+++ b/dev/Boot/BootKit/Support.h
@@ -9,7 +9,9 @@
/// @file Support.h
/// @brief Purpose of this file is to help port libs into the bootloader.
+#ifndef __aarch64__
#include <string.h>
+#endif
#define kLongMax ((long)(~0UL >> 1))
#define kLongMin (~kLongMax)
@@ -34,14 +36,18 @@ EXTERN_C size_t strlen(const char* whatToCheck);
/// @brief strcmp definition in C++.
EXTERN_C int strcmp(const char* whatToCheck, const char* whatToCheckRight);
+#else
+
+#include <string.h>
+
+#endif // __ZBAOSLDR__
+
#define SetMem(dst, c, sz) memset(dst, c, sz)
#define MoveMem(dst, src, sz) memcpy(dst, src, sz)
#define CopyMem(dst, src, sz) memcpy(dst, src, sz)
#define StrLen(src) strlen(src)
#define StrCmp(dst, src) strcmp(dst, src)
-#endif // __ZBAOSLDR__
-
inline int IsSpace(int c)
{
return c == ' ';