Commit Graph

211 Commits

Author SHA1 Message Date
c3e5251687 Some more userland and font failing 2022-09-23 16:41:43 +02:00
11dd165a8e Scheduler: add proper support for user tasks (still faults though) 2022-09-22 08:14:04 +02:00
ec01dc2927 Scheduler: Change fixed Task array for (highly inefficient) memory allocation, add userspace task support (which as memory is mapped kernel-only instantly crashes), and support for exiting a task (marking it as exited and reaping it later) 2022-09-21 21:06:00 +02:00
4401b31440 Remove ds from context, no need for it in x86_64, use ss instead 2022-09-21 21:03:24 +02:00
49ddb47ad4 Reorganize structure 2022-09-21 17:56:53 +02:00
1dce3a0cf7 Give 1 tick of CPU time to the idle task 2022-09-20 20:48:49 +02:00
ddbe9b8b8b Few small adjustments to the scheduler 2022-09-20 20:02:08 +02:00
1c12cf016e Add a Scheduler.
Finally.

Just Round Robin with sleeping, but it's still awesome. I think this can finish v0.3, with a few adjustments.
2022-09-20 19:58:04 +02:00
245d5e514d Optimizations in Spinlock.asm 2022-09-19 16:36:34 +02:00
99e681aeb4 Forgot to add volatile
Did I check to see if it compiled before making the previous commit? Yes, of course, why are you asking? ...
2022-09-18 20:16:46 +02:00
d4a982306f Add spinlocks 2022-09-18 20:15:19 +02:00