Commit Graph

43 Commits

Author SHA1 Message Date
728d9f05e9 Less crappy skiplist 2024-04-12 13:18:36 +02:00
f62b985ec9 Get rid of stl
It was cool, but kind of pain
2024-04-11 00:11:30 +02:00
39f0a0bc0d Basic testing infrastructure 2024-04-09 23:00:08 +02:00
7ca402d274 A little IDT cleanup 2024-04-01 12:43:42 +02:00
89c398e8c7 Don't map kernel user-accessible 2024-03-30 10:06:39 +01:00
aadc8148c1 exit syscall 2024-03-24 10:22:42 +01:00
474b67e42f use normal priority queue for tasks 2024-03-23 22:59:35 +01:00
d039745d5f Fix self sleep 2024-03-23 09:59:04 +01:00
ac345d888d One less leak in tasks (VMA) 2024-03-22 18:12:57 +01:00
f143296493 Tasks make a bit more sense now 2024-03-22 16:57:13 +01:00
02ec0c6105 pretty up GDT a little, and other stuff
also thanks internet for the boilerplate
2024-03-22 15:40:06 +01:00
41922d935a taskpid 2023-12-12 23:14:32 +01:00
ca571fbf64 wake up task waker only periodically 2023-12-09 15:03:23 +01:00
8e47fe0db3 locking rework
now spinlocks also disable interrupts (and essentially preemption)
this is especially useful for scheduling/unblocking tasks from anywhere
2023-12-09 14:58:32 +01:00
a20514ef9d readchar 2023-11-27 18:59:13 +01:00
4749bb5c09 GlobalTtyManager 2023-11-26 22:11:29 +01:00
84ae1aa6e5 limine module loading as user tasks! 2023-11-26 21:49:21 +01:00
9fa74148dd working sleep syscall
yes it turns out it was 100% completely broken before
2023-10-26 23:04:23 +02:00
b0cdd10db2 working syscalls!!!!! 2023-10-26 18:18:38 +02:00
19bf417ee0 simple vm allocation 2023-10-26 14:39:18 +02:00
6f1d293cbc user mode tasks (kind of) 2023-10-26 13:24:55 +02:00
63ddd59c68 asserts.hpp 2023-10-26 11:16:11 +02:00
1feb134302 inefficiently print task cpu usage 2023-10-26 11:11:49 +02:00
88186e39fd more useful string
and task accounting
2023-10-26 10:22:54 +02:00
b8c2b64bbb remove a leak of nodes comment 2023-10-25 21:51:00 +02:00
bb62a3bbab use builtin memcpy in task 2023-10-24 22:36:03 +02:00
389582b7a5 fix task node leaks 2023-10-24 22:29:12 +02:00
b44cb7cc68 slightly leaking but otherwise working and arguably prettier scheduler 2023-10-24 14:44:19 +02:00
8b470f0fa1 check for task frame alignment 2023-10-23 23:01:20 +02:00
c8dc675734 brand new mutex 2023-10-23 21:01:40 +02:00
abc522e4ac Revert "slight optimization"
This reverts commit cd22874f23.
2023-10-23 12:10:24 +02:00
cd22874f23 slight optimization 2023-10-22 19:12:55 +02:00
4386d8c1cd fix task entry stack alignment 2023-10-22 12:28:14 +02:00
609c45a71c kmalloc returns aligned memory 2023-10-22 11:12:26 +02:00
a1a0df3f00 fix sse 2023-10-22 10:44:14 +02:00
b94a46cd20 pretty up task switching a bit 2023-10-22 10:25:28 +02:00
dd0614c49a new_ktask const char 2023-10-21 18:22:40 +02:00
467f7b3e35 Vector and string 2023-10-21 18:21:39 +02:00
65a118a68b move string things to string.hpp 2023-10-21 18:05:09 +02:00
dc717ab981 fix tasks being freed super rarely (now it seems there's a lot of bugs in the memory allocator) 2023-10-21 14:48:00 +02:00
9c4a455543 fix tasks not being freed (there's still some small leak it seems) 2023-10-21 14:40:26 +02:00
da88dd88cb spinlocks 2023-10-21 14:19:35 +02:00
d8038a18f9 roughly add c++ 2023-10-21 13:12:03 +02:00