Commit graph vbos/init/trap.c
Author SHA1 Message Date
Michael Shaw
f92e88597d sched: fix page faulting on process switching
This is the first version of the kernel with fully isolated threads for
user and kernel tasks, where process 0 is only used for scheduling and
interrupt handling.

User process have a "buddy" kernel process that handles its tasks in the
kernel.

This system allows for easy blocking of threads without much need for
thought. Just `sswtch` in an infinite read loop, and your userspace
process will be blocked.

Signed-off-by: Michael Shaw <spencershawiscool@gmail.com>
2025-02-11 21:11:49 -05:00
Michael Shaw
72827c1e00 sched: improve thread handling on system calls 2025-02-11 18:58:00 -05:00
Michael Shaw
4a997cec35 trap: explicitly handle certain exceptions 2024-06-13 22:51:18 -04:00
Michael Shaw
0a0235612e syscall: change handling of exceptions and traps 2023-11-21 19:19:35 -05:00