summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/kernel/DmaKit/DmaPool.h4
-rw-r--r--src/kernel/KernelKit/BinaryMutex.h2
-rw-r--r--src/kernel/KernelKit/IFS.h4
-rw-r--r--src/kernel/KernelKit/Semaphore.h10
-rw-r--r--src/kernel/amd64-ci.make6
-rw-r--r--src/kernel/amd64-desktop.make6
-rw-r--r--src/kernel/arm64-desktop.make6
-rw-r--r--src/libASN/src/VirtualMixer.cpp1
-rw-r--r--src/libMsg/MsgKit/Server.h2
-rw-r--r--src/libMsg/src/Server.cpp6
10 files changed, 28 insertions, 19 deletions
diff --git a/src/kernel/DmaKit/DmaPool.h b/src/kernel/DmaKit/DmaPool.h
index 880daab7..da16841f 100644
--- a/src/kernel/DmaKit/DmaPool.h
+++ b/src/kernel/DmaKit/DmaPool.h
@@ -1,4 +1,4 @@
-// Copyright 2024-2025, Amlal El Mahrouss (amlal@nekernel.org)
+// Copyright 2024-2026, Amlal El Mahrouss (amlal@nekernel.org)
// Licensed under the Apache License, Version 2.0 (see LICENSE file)
// Official repository: https://github.com/nekernel-org/nekernel
@@ -12,7 +12,7 @@
#define kNeDMAPoolStart (__nekernel_dma_pool_start)
#define kNeDMAPoolSize (__nekernel_dma_pool_size)
-#define kNeDMABestAlign (8)
+#define kNeDMABestAlign (__nekernel_dma_best_align)
namespace Kernel {
diff --git a/src/kernel/KernelKit/BinaryMutex.h b/src/kernel/KernelKit/BinaryMutex.h
index f3b59f23..70e64736 100644
--- a/src/kernel/KernelKit/BinaryMutex.h
+++ b/src/kernel/KernelKit/BinaryMutex.h
@@ -1,4 +1,4 @@
-// Copyright 2024-2025, Amlal El Mahrouss (amlal@nekernel.org)
+// Copyright 2024-2026, Amlal El Mahrouss (amlal@nekernel.org)
// Licensed under the Apache License, Version 2.0 (see LICENSE file)
// Official repository: https://github.com/nekernel-org/nekernel
diff --git a/src/kernel/KernelKit/IFS.h b/src/kernel/KernelKit/IFS.h
index 61222e10..49df871d 100644
--- a/src/kernel/KernelKit/IFS.h
+++ b/src/kernel/KernelKit/IFS.h
@@ -1,4 +1,4 @@
-// Copyright 2024-2025, Amlal El Mahrouss (amlal@nekernel.org)
+// Copyright 2024-2026, Amlal El Mahrouss (amlal@nekernel.org)
// Licensed under the Apache License, Version 2.0 (see LICENSE file)
// Official repository: https://github.com/nekernel-org/nekernel
@@ -8,6 +8,7 @@
#include <KernelKit/DriveMgr.h>
namespace Kernel {
+
/// @brief Read from IFS disk.
/// @param Mnt mounted interface.
/// @param DrvTrait drive info
@@ -21,6 +22,7 @@ Int32 fs_ifs_read(IMountpoint* mnt, DriveTrait& drvTrait, Int32 drvIndex);
/// @param DrvIndex drive index.
/// @return Status code
Int32 fs_ifs_write(IMountpoint* mnt, DriveTrait& drvTrait, Int32 drvIndex);
+
} // namespace Kernel
#endif
diff --git a/src/kernel/KernelKit/Semaphore.h b/src/kernel/KernelKit/Semaphore.h
index 523d184f..2a976c31 100644
--- a/src/kernel/KernelKit/Semaphore.h
+++ b/src/kernel/KernelKit/Semaphore.h
@@ -1,9 +1,9 @@
-// Copyright 2024-2025, Amlal El Mahrouss (amlal@nekernel.org)
+// Copyright 2024-2026, Amlal El Mahrouss (amlal@nekernel.org)
// Licensed under the Apache License, Version 2.0 (see LICENSE file)
// Official repository: https://github.com/nekernel-org/nekernel
-#ifndef KERNELKIT_TLS_H
-#define KERNELKIT_TLS_H
+#ifndef KERNELKIT_SEMAPHORE_H
+#define KERNELKIT_SEMAPHORE_H
/// @author Amlal El Mahrouss
/// @file Semaphore.h
@@ -68,7 +68,7 @@ inline bool rtl_sem_wait(SemaphoreArr& sem, const UInt64 owner, const UInt64 tim
return false;
}
- if (timeout < 1) {
+ if (timeout == 0) {
err_global_get() = kErrorTimeout;
return false;
@@ -110,4 +110,4 @@ inline bool rtl_sem_wait(SemaphoreArr& sem, const UInt64 owner, const UInt64 tim
} // namespace Kernel
-#endif // !KERNELKIT_TLS_H \ No newline at end of file
+#endif // !KERNELKIT_SEMAPHORE_H
diff --git a/src/kernel/amd64-ci.make b/src/kernel/amd64-ci.make
index 38e2cccf..dcb1c97e 100644
--- a/src/kernel/amd64-ci.make
+++ b/src/kernel/amd64-ci.make
@@ -1,11 +1,11 @@
-##################################################
+###############################################################
# (c) Amlal El Mahrouss, licensed under the Apache 2.0 license.
# This is the NeKernel's makefile.
-##################################################
+###############################################################
CXX = x86_64-w64-mingw32-g++
LD = x86_64-w64-mingw32-ld
-CCFLAGS = -fshort-wchar -D__nekernel_max_cores=8 -c -D__NE_AMD64__ -D__NEOSKRNL__ -D__NE_VEPM__ -Werror -Wall -Wpedantic -Wextra -mno-red-zone -fno-rtti -fno-exceptions -std=c++20 -D__NE_SUPPORT_NX__ -O0 -I../vendor -D__FSKIT_INCLUDES_NEFS__ -D__NEKERNEL__ -D__HAVE_NE_API__ -D__FREESTANDING__ -D__NE_VIRTUAL_MEMORY_SUPPORT__ -D__NE_AUTO_FORMAT__ -D__NE__ -I./ -I../ -I../boot
+CCFLAGS = -fshort-wchar -D__nekernel_dma_best_align=8 -D__nekernel_max_cores=8 -c -D__NE_AMD64__ -D__NEOSKRNL__ -D__NE_VEPM__ -Werror -Wall -Wpedantic -Wextra -mno-red-zone -fno-rtti -fno-exceptions -std=c++20 -D__NE_SUPPORT_NX__ -O0 -I../vendor -D__FSKIT_INCLUDES_NEFS__ -D__NEKERNEL__ -D__HAVE_NE_API__ -D__FREESTANDING__ -D__NE_VIRTUAL_MEMORY_SUPPORT__ -D__NE_AUTO_FORMAT__ -D__NE__ -I./ -I../ -I../boot
ASM = nasm
diff --git a/src/kernel/amd64-desktop.make b/src/kernel/amd64-desktop.make
index a0c4b957..4afcdfd2 100644
--- a/src/kernel/amd64-desktop.make
+++ b/src/kernel/amd64-desktop.make
@@ -1,12 +1,12 @@
-#################################################
+###############################################################
# (c) Amlal El Mahrouss, licensed under the Apache 2.0 license.
# This is the NeKernel's makefile.
-##################################################
+###############################################################
CXX = x86_64-w64-mingw32-g++
LD = x86_64-w64-mingw32-ld
CCFLAGS = -fshort-wchar -D__nekernel_dma_pool_start=0x1000000 -D__nekernel_dma_pool_size=0x1000000 \
- -D__nekernel_halkit_include_processor="<HALKit/AMD64/Processor.h>" -D__nekernel_max_cores=8 -c -D__NE_AMD64__ -D__NEOSKRNL__ -D__NE_VEPM__ -Wall -Wpedantic -Wextra -mno-red-zone -fno-rtti -fno-exceptions -std=c++20 -D__FSKIT_INCLUDES_OPENHEFS__ -D__FSKIT_INCLUDES_EXT2__ -D__NE_SUPPORT_NX__ -O0 -I../vendor -D__NEKERNEL__ -D__HAVE_NE_API__ -D__FREESTANDING__ -D__NE_VIRTUAL_MEMORY_SUPPORT__ -D__NE_AUTO_FORMAT__ -D__NE__ -I./ -I../ -I../boot
+ -D__nekernel_halkit_include_processor="<HALKit/AMD64/Processor.h>" -D__nekernel_max_cores=8 -c -D__NE_AMD64__ -D__NEOSKRNL__ -D__NE_VEPM__ -Wall -Wpedantic -Wextra -mno-red-zone -fno-rtti -fno-exceptions -std=c++20 -D__nekernel_dma_best_align=8 -D__FSKIT_INCLUDES_OPENHEFS__ -D__FSKIT_INCLUDES_EXT2__ -D__NE_SUPPORT_NX__ -O0 -I../vendor -D__NEKERNEL__ -D__HAVE_NE_API__ -D__FREESTANDING__ -D__NE_VIRTUAL_MEMORY_SUPPORT__ -D__NE_AUTO_FORMAT__ -D__NE__ -I./ -I../ -I../boot
ASM = nasm
diff --git a/src/kernel/arm64-desktop.make b/src/kernel/arm64-desktop.make
index d38f0cbd..1ca80a9e 100644
--- a/src/kernel/arm64-desktop.make
+++ b/src/kernel/arm64-desktop.make
@@ -1,13 +1,13 @@
-##################################################
+###############################################################
# (c) Amlal El Mahrouss, licensed under the Apache 2.0 license.
# This is the microKernel makefile.
-##################################################
+###############################################################
CC = clang++
LD = lld-link
CCFLAGS = -fshort-wchar -c -ffreestanding -MMD -mno-red-zone -D__NE_ARM64__ -fno-rtti -fno-exceptions -I./ \
-target aarch64-unknown-windows \
- -std=c++20 -D__nekernel_max_cores -O3 -D__NEKERNEL__ -D__NEOSKRNL__ -D__NE_VEPM__ -D__NE_MINIMAL_OS__ -D__NE_NO_BUILTIN__ -D__HAVE_NE_API__ -D__NE__ -I../
+ -std=c++20 -D__nekernel_max_cores=8 -D__nekernel_dma_best_align=8 -O3 -D__NEKERNEL__ -D__NEOSKRNL__ -D__NE_VEPM__ -D__NE_MINIMAL_OS__ -D__NE_NO_BUILTIN__ -D__HAVE_NE_API__ -D__NE__ -I../
ASM = clang++
diff --git a/src/libASN/src/VirtualMixer.cpp b/src/libASN/src/VirtualMixer.cpp
index d8a01b5a..8884f035 100644
--- a/src/libASN/src/VirtualMixer.cpp
+++ b/src/libASN/src/VirtualMixer.cpp
@@ -3,3 +3,4 @@
// Official repository: https://github.com/nekernel-org/nekernel
#include <AsnKit/VirtualMixer.h>
+
diff --git a/src/libMsg/MsgKit/Server.h b/src/libMsg/MsgKit/Server.h
index 189715df..5fa3ef9d 100644
--- a/src/libMsg/MsgKit/Server.h
+++ b/src/libMsg/MsgKit/Server.h
@@ -13,7 +13,7 @@
/// @author Amlal El Mahrouss
/// @file Server.h
-/// @brief libMsg LISP system.
+/// @brief The libMsg LISP system.
struct LIBMSG_EXPR;
diff --git a/src/libMsg/src/Server.cpp b/src/libMsg/src/Server.cpp
index 9331670a..e9086c2c 100644
--- a/src/libMsg/src/Server.cpp
+++ b/src/libMsg/src/Server.cpp
@@ -4,3 +4,9 @@
#include <libMsg/MsgKit/Server.h>
+IMPORT_C UInt32 libmsg_close_library(Void) { return 0; }
+
+IMPORT_C UInt32 libmsg_eval_expr(struct LIBMSG_EXPR* head) { return 0; }
+
+IMPORT_C Void libmsg_init_library(libmsg_func_type* funcs, SizeT cnt) {}
+