apio pushed to restart at apio/Luna 2022-12-08 15:13:24 +00:00
e729c38200 Merge pull request 'Add an Option type and get rid of ENONE' (#19) from optionals-and-empty-errors into restart
b9f3d3c349 Remove ENONE
da104c87cb Heap: Return Option in split()
b6173e2b67 LinkedList: Return Option instead of ENONE if no value
406af68a54 Result: Use Option as backend
Compare 6 commits »
apio created pull request apio/Luna#19 2022-12-08 15:11:15 +00:00
Add an Option type and get rid of ENONE
apio created branch optionals-and-empty-errors in apio/Luna 2022-12-08 15:10:04 +00:00
apio pushed to optionals-and-empty-errors at apio/Luna 2022-12-08 15:10:04 +00:00
b9f3d3c349 Remove ENONE
da104c87cb Heap: Return Option in split()
b6173e2b67 LinkedList: Return Option instead of ENONE if no value
406af68a54 Result: Use Option as backend
b58eba63f1 Add a new Option class which behaves like Result, but has no error number, just a value or no value
Compare 5 commits »
apio pushed to restart at apio/Luna 2022-12-08 14:10:04 +00:00
6cee208e62 Kernel: Enable -Wsign-conversion
apio pushed to restart at apio/Luna 2022-12-08 14:01:37 +00:00
779fda307a More scope guards!!
1d5d1daa57 Add scope guards
Compare 2 commits »
apio pushed to restart at apio/Luna 2022-12-07 17:18:20 +00:00
6de7753b4c Add malloc wrappers
apio pushed to restart at apio/Luna 2022-12-07 17:12:00 +00:00
c8302a4fef Add convenience functions to print the stack trace directly
apio pushed to restart at apio/Luna 2022-12-07 16:40:34 +00:00
0d437cfcca Add support for stack traces
apio pushed to restart at apio/Luna 2022-12-07 16:12:00 +00:00
416e96c4d5 Merge pull request 'Add a basic scheduler with threads' (#18) from threads into restart
d93d95f23c Add sleeping mechanism
757cee4693 Add accessors for when you're sure a linked list is not empty
70497c37fb Check for runnable threads
57517252d8 Add a state to Thread
Compare 20 commits »
apio merged pull request apio/Luna#18 2022-12-07 16:11:59 +00:00
Add a basic scheduler with threads
apio pushed to restart at apio/Luna 2022-12-07 16:07:05 +00:00
986aa01948 size_t -> usize
apio pushed to threads at apio/Luna 2022-12-07 14:56:34 +00:00
6f05feb55f Add sleeping mechanism
apio pushed to threads at apio/Luna 2022-12-07 14:22:21 +00:00
71d2b492ea Add accessors for when you're sure a linked list is not empty
apio pushed to threads at apio/Luna 2022-12-07 14:17:52 +00:00
6cd25fb9b1 Check for runnable threads
021ea1063b Add a state to Thread
Compare 2 commits »
apio created pull request apio/Luna#18 2022-12-07 14:07:06 +00:00
WIP: Add a basic scheduler with threads
apio pushed to threads at apio/Luna 2022-12-07 14:04:42 +00:00
48fe2d4b04 Initialize and demo the scheduler
c561b0b310 x86_64: Invoke the scheduler every millisecond
f97e392f89 Add a Scheduler!!
ad11aa719e Add a Thread class which can be part of a DoublyLinkedList
b9b7d1e201 KernelVM: clean up a bit
Compare 5 commits »
apio created branch threads in apio/Luna 2022-12-07 13:49:01 +00:00
apio pushed to threads at apio/Luna 2022-12-07 13:49:01 +00:00
8c04788793 Add a Stack convenience class
c5476115df CPU.h: pragma once
b93a208f22 Make idle_loop noreturn
98a55b2c13 Bitmap: Fix crash by attempting to memset -1 bits (UINT64_MAX)
3248041aef Bitmap: short circuit on 0-byte clears
Compare 10 commits »
apio pushed to restart at apio/Luna 2022-12-07 10:48:17 +00:00
beab3454b5 kernel: Enable -Wsign-conversion and -Wcast-align
1badc40a4a Run include-what-you-use everywhere
Compare 2 commits »