syscall log: fix logging with smap on

This commit is contained in:
Matheus
2026-05-28 14:17:39 -03:00
parent b7cdec1360
commit b3312444bf
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -243,7 +243,9 @@ __attribute__((no_caller_saved_registers)) void arch_syscall_log(int syscall, ui
if (!(proc->flags & PROC_FLAG_SYSTRACE) && GET_KERNEL_ARGUMENT(global_syscall_logging, bool) == false)
return;
arch_cpu_user_access_begin();
snprintf(argbuff, 768, syscall < SYSCALL_COUNT ? args[syscall] : "N/A", a1, a2, a3, a4, a5, a6);
arch_cpu_user_access_end();
snprintf(printbuff, 1024, "\e[92msyscall: pid %d tid %d: %s: %s (%lu cached pages, %lu free pages)\n\e[0m", proc->pid, thread->tid, syscall < SYSCALL_COUNT ? name[syscall] : "invalid syscall", argbuff, vmmcache_cachedpages, freepagecount);
arch_interrupt_disable();
+1 -1
View File
@@ -1,5 +1,5 @@
name=astral
revision=11
revision=12
from_source=astral
imagedeps="build-essential nasm"
hostdeps="xgcc xbinutils limine"