diff options
author | Ian Moffett <ian@osmora.org> | 2024-05-23 21:42:24 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-05-23 21:42:24 -0400 |
commit | a1b41f955c3082ac6b05f578e2d9aa9e427a2271 (patch) | |
tree | 84fd57bdf13649f2af437949902c4ff1f03cab3b /sys/kern/init_main.c | |
parent | 887c6fbd2d137d848afea56d8216e630c7796311 (diff) |
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>
Diffstat (limited to 'sys/kern/init_main.c')
-rw-r--r-- | sys/kern/init_main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index 10cd90e..5f5e8c3 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -102,6 +102,9 @@ main(void) sched_init(); ci = this_cpu(); + /* Stop writing kernel messages to TTY */ + g_syslog_use_tty = false; + __TRY_CALL(ap_bootstrap, ci); sched_enter(); |