Implement PIT interrupts
This commit is contained in:
@ -8,7 +8,6 @@
|
||||
Term TERM;
|
||||
|
||||
void term_init(void) {
|
||||
spinlock_init(&TERM.spinlock);
|
||||
TERM.ftctx = flanterm_fb_init(
|
||||
NULL, NULL,
|
||||
BOOT_INFO.fb->address,
|
||||
@ -32,9 +31,7 @@ void term_init(void) {
|
||||
}
|
||||
|
||||
void term_write(const char *s, size_t len) {
|
||||
spinlock_acquire(&TERM.spinlock);
|
||||
flanterm_write(TERM.ftctx, s, len);
|
||||
spinlock_release(&TERM.spinlock);
|
||||
}
|
||||
|
||||
#if PUTCHAR_ == PUTCHAR_FB
|
||||
|
Reference in New Issue
Block a user