Commit graph vbos/init/irq.c
Author SHA1 Message Date
Michael Shaw
f03a30e07e irq: enable LAPIC timer
Signed-off-by: Michael Shaw <spencershawiscool@gmail.com>
2024-06-17 17:53:55 -04:00
Michael Shaw
a10509f1e5 lib: move lib headers into lib directory 2024-01-30 22:00:20 -05:00
Michael Shaw
37518aea81 usr: implement user process switching
This is a rather large commit, so the gist of it is this:

User context switching is now functional, after a change to the TSS, and
a few minor details in the scheduler and loader.

ELF parsing is rather primitive, but basically functional, as long as it
only loads code.

The interrupt 0x80 is for syscalls, and will switch from user mode to
kernel mode. It is currently the only interrupt that can be called from
user mode

This adds the syscall functionality, which currently uses a red-black
tree to store the function pointers, although when the table is more
flushed out, it will probably be replaced with an array

The pager now correctly marks the parent nodes with attributes as it
allocates them. Without doing this, the page table entries will never be
reached in lower privilege modes, causing page faults

Signed-off-by: Michael Shaw <spencershawiscool@gmail.com>
2023-11-20 22:07:35 -05:00
Michael Shaw
d60da85470 load: add basic elf loading 2023-11-16 23:22:27 -05:00
Michael Shaw
2fe0b0068b sched: begin scheduling module 2023-11-13 22:23:06 -05:00
Michael Shaw
0395b65ad8 stdio: add vsnprintf and change printf to kprintf 2023-05-14 01:23:21 -04:00
Michael Shaw
69ee1fd79c ahci: complete read/write sectors function 2023-05-07 15:21:04 -04:00
Michael Shaw
9ac63f29dd improve pci driver 2023-05-06 17:59:46 -04:00
Michael Shaw
54ccb27ef0 irq: remove useless function 2023-05-04 22:17:59 -04:00
Michael Shaw
b8b67aadc9 irq: make IRQs dynamically mappable 2023-05-04 22:10:23 -04:00
Michael Shaw
87146087ca begin ahci driver 2023-05-04 21:47:48 -04:00