logging: remove unescessary init

This commit is contained in:
Matheus
2024-09-29 16:30:23 -03:00
parent c3eef02d50
commit 84b6ec3061
2 changed files with 1 additions and 6 deletions
-1
View File
@@ -45,7 +45,6 @@ static cpu_t bsp_cpu;
void kernel_entry() {
cpu_set(&bsp_cpu);
logging_init();
logging_sethook(arch_e9_putc);
arch_gdt_reload();
+1 -5
View File
@@ -1,6 +1,6 @@
#include <mutex.h>
mutex_t printf_mutex;
MUTEX_DEFINE(printf_mutex);
static void nohook(char c) {
@@ -16,7 +16,3 @@ void _putchar(char c) {
void logging_sethook(void (*fun)(char)) {
hook = fun;
}
void logging_init() {
MUTEX_INIT(&printf_mutex);
}