summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2024-03-13kernel/amd64: machdep: Add processor_free_pcb()Ian Moffett
Add routine to deallocate resources within the process control block. Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-13kernel/amd64: machdep: Check for NULL instead of 0Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-13kernel/amd64: machdep: Add context switch helperIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-13kernel/amd64: machdep: Add pcb init codeIan Moffett
This commit adds a processor specific routine which sets up the Process Control Block for a thread Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-13kernel: proc: Add Process Control Block structureIan Moffett
This is to be implemented per arch and has arch specific thread information. For example, on the AMD64 port, this can contain things like an x87 FPU save area Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-13kernel/amd64: machdep: Remove extra whitespaceIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-13kernel/amd64: trap: Update panic messageIan Moffett
We have a scheduler now, this old message does not make sense. So it is replaced. Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-13kernel/amd64: cpu: Add fxsave/fxrstor helpersIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-13kernel/amd64: spectre: Log only onceIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-13kernel: sched: Improve stack init codeIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-13kernel/amd64: machdep: Fix typoIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-11kernel/amd64: machdep: Enable SSE/SSE2 per coreIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-11kernel/amd64: Add control register r/w helpersIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-10kernel: loader: CleanupIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-10kernel/amd64: trap: Add stack-segment fault ISRIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-09kernel: vm_map: Account for address misalignmentIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-08kernel: fs: Fix logic bug in initramfs codeIan Moffett
Return NULL if hdr is NULL, Before, if the file is not found, 0x200 would be returned instead of NULL. Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-07kernel: sched: Add support for user threadsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-07kern: sched: Refactor queue and ctx switch codeQuinn Stephens
Signed-off-by: Quinn Stephens <quinn@osmora.org> Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-07kernel/amd64: trap: Parse TRAP_PAGEFLT error codeIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-07kernel: loader: Only load user programsIan Moffett
This commit ensures user programs are loaded only. This can be changed in the future if support for ELFs that will run in kernel space is added. Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-07kernel: Require VAS arg in vm + loader refactorIan Moffett
This commit adds vas argument to VM mapping functions as well as changing how mapping is done in the loader. This commit also fixes weird error handling and parses needed PHDRs within the loader Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-06kernel/amd64: Remove switch.SIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-06kernel: kern_loader: Add AT_* definesIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-01kernel: vm_map: Add vm_map_destroy()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-01kernel: vm_map: Remove misalignment checksIan Moffett
This commit removes misalignment checks and aligns VA and PA automatically Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-01kernel: mount: Update sys/mount.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-01kernel: vfs: Add wrappers over VFS operationsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-01kernel: initramfs: Add support with VFS + USTARIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-01kernel: vfs_init: Add root vnodeIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-01kernel: vfs_mount: Allocate vnode per mountpointIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-01kernel/amd64: vfs_subr: Add path parsing helperIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-01kernel: vfs_subr: Add '.' to valid path charsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-01kernel: vfs: Update vnode structureIan Moffett
Added vnode operations structure, removed some unused fields to clean up, and added new fields. Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-01kernel: vfs: Remove useless structureIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-01kernel: vfs: Return -1 on vfs_hash_path() failureIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-01kernel: vfs_init: Make "filesystems" staticIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-01kernel: vfs: Simplify mounting logicIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-01kernel: vfs: Fix logic bug in vfs_hash_path()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-02-29kernel/amd64: frame: Add missing includeIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-02-29kernel/amd64: trap: Simplify trap_print() logicIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-02-29kernel/amd64: machdep: Add wrappers over CLI/STIIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-02-29kernel/amd64: pmap: Add user pte flagIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-02-29kernel/amd64: pmap: Add routine to switch vasIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-02-29kernel/amd64: pmap: Fix calculation of indicesIan Moffett
This commit fixes a very stupid mistake in the pmap module for AMD64 Signed-off-by: Ian Moffett <ian@osmora.org>
2024-02-29kernel/amd64: pmap: Allocate new pmap if neededIan Moffett
This commit also removes the unnecessary usage of "volatile" Signed-off-by: Ian Moffett <ian@osmora.org>
2024-02-29kernel: vm: vm_get_bsp_ctx() -> vm_get_ctx()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-02-29kernel: vm: Add more documentationIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-02-29kernel/amd64: tss: Allocate stack for RSP0Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-02-29kernel: vfs_subr: Update commentIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>