diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-04-15 16:54:06 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-04-15 16:54:06 +0200 |
| commit | 56a97ff6398c03de22dabd7b93f54b1292f66b97 (patch) | |
| tree | e0d9c58af0255261cddcc30770863c6a95f17820 /dev/user/src | |
| parent | 4f7562afaee939467299efdb6b7fac159f6cbd27 (diff) | |
dev, user: user.sys refactors.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/user/src')
| -rw-r--r-- | dev/user/src/GNUmakefile | 4 | ||||
| -rw-r--r-- | dev/user/src/SystemCalls+IO.asm (renamed from dev/user/src/SystemCall+IO.asm) | 2 | ||||
| -rw-r--r-- | dev/user/src/SystemCalls.cc | 2 |
3 files changed, 5 insertions, 3 deletions
diff --git a/dev/user/src/GNUmakefile b/dev/user/src/GNUmakefile index c0ddd5b4..09993d16 100644 --- a/dev/user/src/GNUmakefile +++ b/dev/user/src/GNUmakefile @@ -1,6 +1,6 @@ ################################################## # (c) Amlal El Mahrouss, all rights reserved. -# This is the bootloader makefile. +# This file is for user.sys's syscall stubs. ################################################## ASM=nasm @@ -13,4 +13,4 @@ error: .PHONY: sci_asm_io_x64 sci_asm_io_x64: - $(ASM) $(FLAGS) SystemCall+IO.asm -o SystemCall+IO.o + $(ASM) $(FLAGS) SystemCalls+IO.asm -o SystemCalls+IO.asm.o diff --git a/dev/user/src/SystemCall+IO.asm b/dev/user/src/SystemCalls+IO.asm index 8f123ec8..58ea79e7 100644 --- a/dev/user/src/SystemCall+IO.asm +++ b/dev/user/src/SystemCalls+IO.asm @@ -9,6 +9,8 @@ [bits 64] +;; @brief Syscall dispatch, also taking note the Microsoft's calling convention to translate it to NeKernel's ABI. + section .text global sci_syscall_arg_1 diff --git a/dev/user/src/SystemCalls.cc b/dev/user/src/SystemCalls.cc index 19f1fe42..2dd27dc0 100644 --- a/dev/user/src/SystemCalls.cc +++ b/dev/user/src/SystemCalls.cc @@ -27,7 +27,7 @@ IMPORT_C VoidPtr MmCopyMemory(_Input VoidPtr dest, _Input VoidPtr src, _Input Si return dest;
}
-/// @brief Fill memory region with **value**.
+/// @brief Fill memory region **dest** with **value**.
IMPORT_C VoidPtr MmFillMemory(_Input VoidPtr dest, _Input SizeT len, _Input UInt8 value)
{
if (!len ||
|
