Merged
Conversation
Update calling convention syntax
Add physical memory manager
This also removed the need for `@intCase()` Also move the making directories and copying to a script to the build is simpler. Install qemu earler Added chmod +x Fixed copy elf Added missing switch for qemu binary Spelling Make makeiso.sh executable No longer chmod makeiso.sh Use the cache root to set the output directory
Unittest in build arch
Add Format step to build
Update zig code
Keep stack section
Added cpu model Moved logging to defer done log Moved mem.init to bottom Updated again to new zig master
Update Pluto to Zig master
Add virtual memory manager
Run CI checks on pull requests and pushes
use /usr/bin/env bash instead of /bin/bash
Add VMM start address to allocation result
Moved CR assembly to arch file Fixed new line Moved control registers from arch to paging
…-fault Log CPU state on page fault
Add a heap allocator
Fix x86 payload
Virtual filesystem
Added the new testing to the OS files Some spelling INOUT => IN/OUT Added some doc comments to log Added the new runtime to the build + added the None test mode Moved some stuff around None test mode is the default to run/build the OS normally with no runtime tests. Add the new runtime testing to the CI Updated README and CI Increased timeout Print the log message Spelling Move runtime to test folder Add new RT to tty Add a log to use the unmapped memory to cause page fault in release Ensure the integer overflow happens even in release builds
…h-zig Replace python rt with zig
This will allow the user to build the OS with more fine grain, but there is a white list of supported build targets. Closes #129 Updated the README to reflect the new build options x86 => i386
…ions Use the standardTargetOptions for built targets
Set the kernel VMM start address to the virtual address offset
…rface Update to new allocator interface
Update for latest zig
…locations Insert the correct address into the allocations map
Fix heap freeing one too many blocks
This allows for a bitmap that doesn't need an allocator.
A comptime bitmap
Replace buddy allocator with free list allocator
Fix TSS
Also change to .{} syntax where appropriate.
Added the SS segment
Fixed spelling
Refactoring GDT
Multitasking working for now
WIP scheduler
Refactored Bitmap a bit
WIP still
Task switching working
Handlers return the stack pointer that will be used to restore the tasks stack, normal handlers will return the same stack pointer it was called with where task switching will return the stack pointer of the next task and restore its state using the interrupt stub.
Initial scheduler done
Created a stage 2 init task
Change u32 to usize
Move Task to arch specific
WIP
WIP2
Removed esp from task, replaced with stack_pointer
Removed the debug logs
Fixed init task stack
Change pickNextTask to pointer manipulation
This allows less allocations so faster switching
Temporary enable interrupts for some runtime tests
PIT and RTC need interrupts enabled to run their runtime tests
Renamed schedule => pickNextTask, comptime bitmap for pids not task init
And some other stuff: No pub for the task anymore
Use the leak detector allocator
Fmt
Fix unit tests
And some other stuff :P
PR review
Moved Task out of arch and have the stack init in the arch file
Mocking clean up
Removed commented code
Renamed createTask to scheduleTask where the user will have to provide a task to schedule
Removed redundant pub in log runtime test
Removed global allocator for scheduler
Cleaner assembly in paging
Fmt
Added new Scheduler test mode
Added new test mode to CI
Removed one of the prints
Added doc comment, task test for i386
Removed test
WIP
Runtime tests work
Have a global set in one task and reacted to in another. Also test that local variables are preserved after a task switch.
Removed new lines
Increased line length
Move the allocation of the bool above the task creation
Initial scheduler
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This release has a heavy emphasis on memory management, a preqreuisite for more complex functionality in the kernel. A highlight was finally merging multitasking support.
Features:
* Physical memory manager (#104)
* Running unit tests on the target architecture (#122)
* x86 real-time-clock (#123)
* Formatting as part of the build process (#124)
* Virtual memory manager (#128)
* Using
/usr/bin/env bashinstead of/bin/bashin makeiso.sh (#131)* Multitasking (#138)
* Virtual filesystem (#139)
* Logging CPU state on a page fault (#140)
* Target architecture option for build.zig (#168)
* Heap allocator (#183)
* Comptime-capable bitmap (#188)
Bug fixes:
* Keeping the stack section intact (#126)
* Write full symbol name to the kernel symbol file (#144)
* Change integer types to usize for 64-bit scaling (#146)
Miscellaneous:
* Run CI checks on PRs and pushes (#132)
* Removal of start.asm and start.s (#151)
* Delegate boot module and memory initialisation to the architecture (#149)
* Move of the linker script to the architecture folder (#153)
* Delegate serial initialisation to the architecture (#157 and #159)
* Delegate TTY initialisation to the architecture (#163)
* Replace python runtime testing to zig (#164)