mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
kernel: add nofblog option
This commit is contained in:
@@ -9,6 +9,9 @@
|
||||
#include <kernel/poll.h>
|
||||
#include <kernel/tty.h>
|
||||
#include <kernel/init.h>
|
||||
#include <kernel/kernel_args.h>
|
||||
|
||||
DEFINE_KERNEL_ARGUMENT(nofblog, bool);
|
||||
|
||||
static spinlock_t input_buffer_lock = SPINLOCK_INIT_VALUE;
|
||||
static ringbuffer_t input_buffer;
|
||||
@@ -274,6 +277,7 @@ void console_init() {
|
||||
tty->winsize.ws_xpixel = fbx;
|
||||
tty->winsize.ws_ypixel = fby;
|
||||
|
||||
if (!GET_KERNEL_ARGUMENT(nofblog, bool))
|
||||
logging_sethook(console_putc);
|
||||
}
|
||||
|
||||
|
||||
@@ -10,6 +10,9 @@
|
||||
#include <arch/mmu.h>
|
||||
#include <kernel/init.h>
|
||||
#include <logging.h>
|
||||
#include <kernel/kernel_args.h>
|
||||
|
||||
DEFINE_KERNEL_ARGUMENT(nofblog, bool);
|
||||
|
||||
static volatile struct limine_flanterm_fb_init_params_request flanterm_request = {
|
||||
.id = LIMINE_FLANTERM_FB_INIT_PARAMS_REQUEST_ID
|
||||
@@ -99,6 +102,8 @@ void term_init() {
|
||||
fbys = fb->height;
|
||||
|
||||
MUTEX_INIT(&term_mutex);
|
||||
|
||||
if (!GET_KERNEL_ARGUMENT(nofblog, bool))
|
||||
logging_sethook(term_putchar);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user