Implement PIT interrupts

This commit is contained in:
2025-08-22 12:37:48 +02:00
parent 9d8849a425
commit 182c6e2956
13 changed files with 354 additions and 145 deletions

View File

@ -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

View File

@ -6,7 +6,6 @@
#include "spinlock/spinlock.h"
typedef struct {
SpinLock spinlock;
struct flanterm_context *ftctx;
} Term;