Commit Graph

11 Commits

Author SHA1 Message Date
csd4ni3l 5f4154bd24 Remove unused imports, merge ps2 and virtio to both use linux input
events and move parsing code to libxunil, and add mouse support again by
using them, remove unneeded graphics and console output code, merge
build files to a rust app builder, make framebuffer a driver and remove
the graphics folder, add shell as an app in VFS
2026-05-28 18:51:03 +02:00
csd4ni3l 6ebc6ada09 Increase kernel stack size to 2mb, move from cooperative to timer
preemption based scheduling, add correct save_lock on aarch64, add
simple IPC (read, write, manage), and simple and unsecure SHM, add
per-process kernel stacks, add copy_cstr_to_user, always use run_next
for aarch64, remove primitives from the kernel
2026-05-26 09:53:59 +02:00
csd4ni3l 2a73c3aeb4 Add a config.mk file where global variables can be modified, add aarch64
interrupts with IRQ and syscalls, make phys_to_virt checked, recreate
stack on aarch64, make serial console finally line wrap and have max
height correctly, add U64Buf for when i need number debug, rename mouse
and keyboard files to kmi and merge them, add non-working pl050 support
2026-05-16 23:43:13 +02:00
csd4ni3l 17f2a3c7e4 Update template to newest version which fixes edk2, make aarch64 compile
(nothing yet) by stubbing lots of functions and modules, make the frame
allocator and heap multiarch, make kernel panic print inside of serial
on x86_64
2026-05-14 18:46:17 +02:00
csd4ni3l f4c2657b94 Make keyboard lock-free (and fix Doom deadlock) by only pushing
scancodes to a spsc queue from the interrupts and only process them
inside syscalls. Also make CURRENT_PID atomic to use less locking
2026-04-19 18:22:16 +02:00
csd4ni3l 3ef95940a7 Remove micromath dependency, improve primitive drawing speed by 300x,
add mouse support and interrupts on x86_64 using a ps2 mouse which
needed pic unmasking, add span filling to framebuffer, add back
without_interrupts to serial console and framebuffer, add a mouse
rectangle which tracks the mouse position and test the performance of
the drawing.
2026-03-29 14:38:43 +02:00
csd4ni3l 269d900d97 Add interrupts and IDT and react to double, page, general prot faults
and breakpoints, add keyboard support through the keyboar interrupt, add
paging memory management and a Frame Allocator, add a generic arch
module that initializes arch-specific things, fix framebuffer and
serialconsole being accessed from multiple places, move serial to driver
since its not actually a serial console.
2026-03-24 13:48:31 +01:00
csd4ni3l e28b898d79 Formatted the code, made the arch code x86_64 only for now, fixed the
serial writer always centering and assuming, added a margin for correct
displaying. Added the IDT and GDT tables, and the TSS so double faults
cant happen. Handled all of these interrupts using functions. Serial
console is now topleft and panic messages are formatted correctly from
there. core PI constant is now used instead of our own.
2026-03-23 18:29:33 +01:00
csd4ni3l 7a938283f7 Move to single arch, add serial console, font rendering, panic handling, move graphics to multiple files, use a global mutex framebuffer & serialconsole 2026-03-14 16:40:23 +01:00
csd4ni3l eeb1c6c701 Add qemu auto-run to makefile, separate utils into a directory, add graphics support with rectangles, circles and triangles, double buffering (kind of) , and make example shapes on startup with an orange background. 2026-03-13 23:00:27 +01:00
csd4ni3l b80e6735cd Build upon the limine Rust template and a working pipeline, display an orange background on load. 2026-03-13 18:57:56 +01:00