feat: add userspace system logging, rename klog to syslog, rename relevant syscalls and API functions

This commit is contained in:
2026-08-14 18:37:27 +02:00
parent 8e45d43116
commit 724029cacb
26 changed files with 139 additions and 52 deletions
+6 -2
View File
@@ -430,8 +430,12 @@ namespace montauk {
}
// Kernel log
inline int64_t read_klog(char* buf, uint64_t size) {
return syscall2(montauk::abi::SYS_KLOG, (uint64_t)buf, size);
inline int64_t read_log(char* buf, uint64_t size) {
return syscall2(montauk::abi::SYS_LOG, (uint64_t)buf, size);
}
inline int64_t write_log(const char* userspaceComponent, const char* logMessage) {
return syscall2(montauk::abi::SYS_LOG_WRITE, (uint64_t)userspaceComponent, (uint64_t)logMessage);
}
// I/O redirection