mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 23:18:21 +00:00
logging: remove unescessary init
This commit is contained in:
@@ -45,7 +45,6 @@ static cpu_t bsp_cpu;
|
|||||||
|
|
||||||
void kernel_entry() {
|
void kernel_entry() {
|
||||||
cpu_set(&bsp_cpu);
|
cpu_set(&bsp_cpu);
|
||||||
logging_init();
|
|
||||||
logging_sethook(arch_e9_putc);
|
logging_sethook(arch_e9_putc);
|
||||||
|
|
||||||
arch_gdt_reload();
|
arch_gdt_reload();
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#include <mutex.h>
|
#include <mutex.h>
|
||||||
|
|
||||||
mutex_t printf_mutex;
|
MUTEX_DEFINE(printf_mutex);
|
||||||
|
|
||||||
static void nohook(char c) {
|
static void nohook(char c) {
|
||||||
|
|
||||||
@@ -16,7 +16,3 @@ void _putchar(char c) {
|
|||||||
void logging_sethook(void (*fun)(char)) {
|
void logging_sethook(void (*fun)(char)) {
|
||||||
hook = fun;
|
hook = fun;
|
||||||
}
|
}
|
||||||
|
|
||||||
void logging_init() {
|
|
||||||
MUTEX_INIT(&printf_mutex);
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user