Commit Graph
71 Commits
Author SHA1 Message Date
christoph e1eac41853 reformat 2022-07-24 16:51:16 +02:00
christoph a00a93d157 better exit error message 2022-07-24 02:27:15 +02:00
christoph b0b6ec13dc allow vector to be lazy init if alloc not avail 2022-07-24 02:22:43 +02:00
christoph 605d4e8c8d switch cpu methods to static 2022-07-24 00:29:21 +02:00
christoph 94cc244868 rename Iterator to iterator 2022-07-23 21:38:16 +02:00
christoph c95361552a rename Vector to vector 2022-07-23 21:37:00 +02:00
christoph 70876f1a06 use the stack for regs in thread_switch 2022-07-23 18:40:16 +02:00
christoph cd26464052 add new asm which doesn't work yet 2022-07-23 18:27:44 +02:00
christoph 55fdf2d493 change thread switch args 2022-07-23 18:27:25 +02:00
christoph 147c106791 Merge branch 'main' into thread.asm_change 2022-07-23 15:23:55 +02:00
christoph 3451dc8ce0 remove register keyword 2022-07-23 14:53:25 +02:00
christoph fe648cc49c change the assembly to use push and pop 2022-07-23 13:15:57 +02:00
christoph 2d1c21584c update 2022-07-23 13:15:48 +02:00
christoph 840c775ff9 remove old thread code (state, inc...) 2022-07-23 13:14:42 +02:00
christoph dc79b6595c thread.cc 2022-07-23 02:11:52 +02:00
christoph 8b40cb1802 switch threadstate to esp int 2022-07-23 01:48:52 +02:00
christoph e143733b00 static logger 2022-07-23 00:20:44 +02:00
christoph bd95c02a08 use static logger 2022-07-22 23:32:46 +02:00
christoph adeaaa6edd update demos for nice_kill 2022-07-22 21:39:22 +02:00
christoph db476093c7 add possibility to ask thread to suicide itself 2022-07-22 21:38:56 +02:00
christoph 16d7ae071d add name + running (nice_kill) to threads 2022-07-22 21:38:43 +02:00
christoph 56eec2d766 disable sched log 2022-07-22 20:45:36 +02:00
christoph 4eeac40bb7 fix scheduler bug (memory req before alloc init) 2022-07-22 20:44:56 +02:00
christoph 43477834fc switch back to cpu.enable_int() from lock/unlock 2022-07-22 18:13:13 +02:00
christoph 104540a22e log 2022-07-22 02:56:30 +02:00
christoph 7e86f961fe scheduler + thread_start rework 2022-07-22 02:33:45 +02:00
christoph 9ad0d81d07 add idlethread error 2022-07-22 02:33:32 +02:00
christoph 017f7de650 adapt to scheduler rework 2022-07-21 20:36:12 +02:00
christoph 2ac36cda83 first (buggy) scheduler unique_ptr rework 2022-07-21 20:35:52 +02:00
christoph 18c659c4cc implement new list interface (optional) 2022-07-19 23:36:57 +02:00
christoph 2b1db30d1c merge dispatcher into scheduler 2022-07-19 00:28:00 +02:00
christoph 132eb13431 update for new list interface 2022-07-17 21:02:33 +02:00
christoph 566c11eab1 reduce insane output + introduce block queue 2022-07-17 01:14:32 +02:00
christoph b1e3129de8 log when idlethread destroyed 2022-07-17 01:14:08 +02:00
christoph 223b8af4b4 logging 2022-07-16 20:14:45 +02:00
christoph b454f5d01c adapt to new list interface 2022-07-16 18:24:32 +02:00
christoph 019e092a5e add some error handling to scheduler 2022-07-16 16:36:45 +02:00
christoph 675f995abd add logging to thread and destructor 2022-07-16 16:36:34 +02:00
christoph 2f7a2a219b add a shnitton of loggers 2022-07-16 03:30:20 +02:00
christoph b8d34e16dd reformat 2022-07-16 01:03:30 +02:00
christoph 499efede47 update scheduler to arraylist 2022-07-16 01:03:00 +02:00
christoph 1f4b9d52ed update idle thread 2022-07-16 01:02:46 +02:00
christoph f395ff1232 mode 2022-07-15 01:28:18 +02:00
christoph d0387ef545 fix scheduling bug with deblock 2022-07-14 13:35:34 +02:00
christoph b840895164 change mode 2022-07-14 13:35:26 +02:00
christoph 5ca6d25c7c change keyboard demo to event listener 2022-07-11 22:51:03 +02:00
christoph 04edfd0a2b print idle thread init 2022-07-11 19:29:57 +02:00
christoph 66b3b914d0 fix semaphore spinlock bug 2022-07-11 15:37:26 +02:00
christoph 012f68838b implement semaphore 2022-07-11 15:00:05 +02:00
christoph 7058350414 use pointer instead of reference for thread 2022-07-11 14:36:41 +02:00