aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/kern_sched.c
AgeCommit message (Collapse)Author
36 hourskernel: sched: Rewrite context switch logicIan Moffett
Simplify and improve context switch logic, also stops the LAPIC from being spammed with register accesses. This also updates the default quantum to 9000 us to avoid cache thrashing and all kinds of other nasty things. Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayskernel: sched: Add sched_detach()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayskernel: sched: Switch on sched_yield()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayskernel: sched: Fix sched dequeue loopIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-04-18kernel: sched: Always sync on sched entryIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-04-17kernel: sched: Default to MLFQIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-04-17kernel: Enable interrupts upon sched entryIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-04-17kernel: sched: Returns as soon as resultIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-04-15kernel: sched: Run oneshots foreverIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-02-21kernel: Update kernel log styleIan Moffett
Kernel logs must now all be lowercase for consistency. A new style called Peripheral Description Notation (PDN) has also been introduced to describe devices. Signed-off-by: Ian Moffett <ian@osmora.org>
2025-02-16project: Update copyright date to 2025Ian Moffett
Was supposed to happen on Jan 1, sorry! Happy late new year! Signed-off-by: Ian Moffett <ian@osmora.org>
2024-08-12kernel: Add initial support for signalsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-07-22kernel: sched: Implement MLFQAptRock327
Implements the Multilevel Feedback Queue scheduling algorithm. Signed-off-by: AptRock327 <dominik032009@gmail.com> Signed-off-by: Ian Moffett <ian@osmora.org>
2024-07-02kernel: proc: Remove PROC_INEXEC flagIan Moffett
This commit removes handling of the PROC_INEXEC flag as md_td_kick() takes care of the transfer to user mode in a cleaner way. Signed-off-by: Ian Moffett <ian@osmora.org>
2024-07-01kernel: exec: Add execve()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-06-30kernel: sched: Add exit1()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-06-25kernel: sched: Remove "TODO" from sched_switch()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-06-23kernel: sched: Add PCB and context switchingIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-06-08kernel/amd64: Prepare for schedulerIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>