sched: properly implement blocking for read

This is a milestone update, as userspace applications are now able to
properly read from TTY devices, be blocked while waiting, and write the
output back. Userspace development will move much faster now that these
kinks have been worked out.

This version will be tagged as vbos v0.01

Signed-off-by: Michael Shaw <spencershawiscool@gmail.com>
This commit is contained in:
Michael Shaw 2024-06-17 22:19:25 -04:00
commit b753afd4fb
9 changed files with 74 additions and 54 deletions

View file

@ -137,7 +137,7 @@ void apic_enable_timer()
lapic_write(lapic_addr, LAPIC_TIMER_DIV, 0x3);
/* set timer initial count */
lapic_write(lapic_addr, LAPIC_TIMER_INIT_COUNT, 0xFFFFFF);
lapic_write(lapic_addr, LAPIC_TIMER_INIT_COUNT, 0xFFF);
/* set timer vector and enable */
lapic_write(lapic_addr, LAPIC_TIMER, 0x20 | 0x20000);