From a1b41f955c3082ac6b05f578e2d9aa9e427a2271 Mon Sep 17 00:00:00 2001
From: Ian Moffett <ian@osmora.org>
Date: Thu, 23 May 2024 21:42:24 -0400
Subject: kernel: syslog: Add kernel message buffer

This commit introduces the kernel message buffer and makes system
messages no longer be written to the TTY after kernel init. The kernel
message buffer can be read from /proc/kmsg

Signed-off-by: Ian Moffett <ian@osmora.org>
---
 sys/fs/procfs_subr.c | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'sys/fs')

diff --git a/sys/fs/procfs_subr.c b/sys/fs/procfs_subr.c
index c1d77ba..8b95919 100644
--- a/sys/fs/procfs_subr.c
+++ b/sys/fs/procfs_subr.c
@@ -29,6 +29,7 @@
 
 #include <sys/panic.h>
 #include <sys/intr.h>
+#include <sys/syslog.h>
 #include <machine/cpu.h>
 #include <fs/procfs.h>
 #include <vm/vm.h>
@@ -109,4 +110,5 @@ procfs_populate(void)
     procfs_add_entry("memstat", memstat);
 
     intr_init_proc();
+    syslog_init_proc();
 }
-- 
cgit v1.2.3