mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-31 14:38:21 +00:00
kernel: use mpaland printf
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
static void nohook(char c) {
|
||||
|
||||
}
|
||||
|
||||
static void (*hook)(char) = nohook;
|
||||
|
||||
// hook used by mpaland printf
|
||||
void _putchar(char c) {
|
||||
hook(c);
|
||||
}
|
||||
|
||||
void logging_sethook(void (*fun)(char)) {
|
||||
hook = fun;
|
||||
}
|
||||
Reference in New Issue
Block a user