feat: add is_terminal_attached syscall

This commit is contained in:
daniel committed 2026-08-27 18:11:21 +02:00
1 parent 8afadb44cb
commit c8264b92a9
11 files changed
+46 -3

No files matched your search

+4 -1
View File
@@ -626,6 +626,8 @@ namespace montauk::abi {
return 0;
}
case SYS_TERMINAL_ATTACHED:
return Sys_TerminalAttached();
default:
return -1;
}
@@ -652,7 +654,8 @@ namespace montauk::abi {
Hal::WriteMSR(Hal::IA32_FMASK, 0x200);
Kt::KernelLogStream(Kt::OK, "Syscall") << "SYSCALL/SYSRET initialized (LSTAR="
<< kcp::hex << (uint64_t)SyscallEntry << kcp::dec << ", 171 syscall slots)";
<< kcp::hex << (uint64_t)SyscallEntry << kcp::dec << ", "
<< (SYS_TERMINAL_ATTACHED + 1) << " syscall slots)";
}
}