mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 23:18:21 +00:00
term: set hook when done
This commit is contained in:
@@ -9,6 +9,7 @@
|
|||||||
#include <kernel/pmm.h>
|
#include <kernel/pmm.h>
|
||||||
#include <arch/mmu.h>
|
#include <arch/mmu.h>
|
||||||
#include <kernel/init.h>
|
#include <kernel/init.h>
|
||||||
|
#include <logging.h>
|
||||||
|
|
||||||
extern volatile struct limine_framebuffer_request fb_liminereq;
|
extern volatile struct limine_framebuffer_request fb_liminereq;
|
||||||
static size_t xs, ys, fbxs, fbys;
|
static size_t xs, ys, fbxs, fbys;
|
||||||
@@ -66,6 +67,8 @@ void term_init() {
|
|||||||
fbys = fb->height;
|
fbys = fb->height;
|
||||||
|
|
||||||
MUTEX_INIT(&term_mutex);
|
MUTEX_INIT(&term_mutex);
|
||||||
|
|
||||||
|
logging_sethook(term_putchar);
|
||||||
}
|
}
|
||||||
|
|
||||||
INIT_ROUTINE_DEFINE(term, INIT_ROUTINE_FLAGS_NONE, term_init, pmm);
|
INIT_ROUTINE_DEFINE(term, INIT_ROUTINE_FLAGS_NONE, term_init, pmm);
|
||||||
|
|||||||
Reference in New Issue
Block a user