Commit Graph

211 Commits

Author SHA1 Message Date
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
6be61b5734 refactor AddressSpace to be a class 2023-10-25 13:37:26 +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
c61d7f586e rename list to list 2023-10-23 17:15:10 +02:00
4cc57586b5 spinlock remembers owner 2023-10-23 14:05:28 +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
c1f2c1504a more sensible list 2023-10-22 18:46:46 +02:00
a7cf6d5b7b hopefully not broken linked list queue 2023-10-22 16:49:31 +02:00
b0ebd1d019 fix interrupt entry stack alignment 2023-10-22 12:30:38 +02:00
4386d8c1cd fix task entry stack alignment 2023-10-22 12:28:14 +02:00
7b0083fa03 align interrupt stack 2023-10-22 11:40:23 +02:00
609c45a71c kmalloc returns aligned memory 2023-10-22 11:12:26 +02:00
8c1d0ac81a less stress testing :) 2023-10-22 10:55:42 +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
db54cbf259 fix redundant options 2023-10-22 10:11:27 +02:00
da9e589545 one little thing 2023-10-21 22:30:46 +02:00
9be4d04851 skip lists work, but sse breaks everything for some reason...
Yet predictable... On qemu every second skip list next node pointer disappears somethimes... On bochs it has a lot of 0x40 and 0x7 in the memory allocator...
2023-10-21 22:10:38 +02:00
66a89bf990 ach, skip lists seem broken, at least everything else seems cool! 2023-10-21 19:36:15 +02:00
99656b0e65 SkipListSet has UB somewhere... 2023-10-21 19:24:33 +02:00
5c6ca432ab reuseUpdate=false
i don't even exactly remember what it does... :D
2023-10-21 19:08:16 +02:00
4f975238ea Pointers! 2023-10-21 19:04:49 +02:00
a2c05c4b7b SkipListSet 2023-10-21 19:02:54 +02:00
802d2e4227 fix the list 2023-10-21 18:57:49 +02:00
150cffd5b3 absolutely amazingly, basically working skip list 2023-10-21 18:49:42 +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
d0343e69b3 remove waiters from spinlock 2023-10-21 16:48:45 +02:00
83a2340944 it's called before calling constructors so be safe 2023-10-21 16:48:12 +02:00
e94f012f27 fix heap corruption 2023-10-21 16:46:24 +02:00
d076ffebf8 add lock to heap init 2023-10-21 15:20:18 +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
c07c68b4f6 add heap stat printing 2023-10-21 14:37:05 +02:00
da88dd88cb spinlocks 2023-10-21 14:19:35 +02:00
06e2c8b6da enable stack protection 2023-10-21 13:49:02 +02:00
9e0fc222c4 osdev copy paste cpp things 2023-10-21 13:30:26 +02:00
e38ee14821 fix ctors calling 2023-10-21 13:24:29 +02:00
d8038a18f9 roughly add c++ 2023-10-21 13:12:03 +02:00
321573a42a fix delays 2023-10-21 12:31:56 +02:00
cb83701401 fix fxsave/fxrstor
apparently the fxsaved memory needs to be zeroed out before...
2023-10-20 14:36:04 +02:00