Kernel/LibC: Rework userspace syscall interface

Kernel syscall API no longer zeros all unused argument registers and
libc now uses inlined syscall macro internally. This significantly
cleans up generated code for basic syscall wrapper functions.
This commit is contained in:
2026-04-07 03:43:35 +03:00
parent 279ac6b2b6
commit 2f9b8b6fc9
9 changed files with 66 additions and 67 deletions

View File

@@ -74,7 +74,7 @@ set(LIBC_SOURCES
)
add_library(objlibc OBJECT ${LIBC_SOURCES})
target_compile_definitions(objlibc PRIVATE __arch=${BANAN_ARCH})
target_compile_definitions(objlibc PRIVATE __arch=${BANAN_ARCH} __is_libc)
target_compile_options(objlibc PRIVATE -O2 -g -Wstack-usage=512 -fno-exceptions -fno-rtti -fpic)
target_compile_options(objlibc PUBLIC -Wall -Wextra -Werror -Wno-error=stack-usage=)