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

@ -26,11 +26,9 @@ genrw(cr2)
genrw(cr3)
genrww(ds)
.global load_stack_and_park
load_stack_and_park:
.global load_stack_and_jump
load_stack_and_jump:
movq %rdi, %rsp
movq %rsi, %rbp
__load_stack_and_park_no_escape:
call yield
jmp __load_stack_and_park_no_escape
movq %rcx, %rdi
jmp *%rdx