Commit Graph

70 Commits

Author SHA1 Message Date
84ae1aa6e5 limine module loading as user tasks! 2023-11-26 21:49:21 +01:00
a64484d0b8 run.sh 2023-11-26 20:51:02 +01:00
eff3c63ecf proper call clobbers 2023-10-26 23:21:43 +02: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
9fc44baaff syscall base 2023-10-26 16:17:30 +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
53f59e50c8 PAGE_SIZE 2023-10-26 12:12:06 +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
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