Michael Shaw
36c6f7b92c
boot: print list of block devices on mount fail
2023-11-01 19:55:44 -04:00
Michael Shaw
f880efe02d
main: add comments explaining ap_kmain and kmain
2023-11-01 19:19:24 -04:00
Michael Shaw
eaf5254b3b
apic: enable LAPIC on application processors
2023-11-01 19:18:31 -04:00
Michael Shaw
e7ceff19ec
gdt: increase GDT size
2023-11-01 17:47:09 -04:00
Michael Shaw
2c88b77edd
init: correct TSS impl, generalize stack loading
2023-11-01 17:43:27 -04:00
Michael Shaw
c2daea8b18
gdt: add TSS entries for application processors
2023-11-01 15:55:29 -04:00
Michael Shaw
b1c7737d0e
main: disable interrupts on BSP entry
...
this prevents boot failure due to unallocated memory being written to
during early boot
2023-11-01 15:35:26 -04:00
Michael Shaw
d813fabae9
boot: start APs after BSP init
2023-11-01 15:29:45 -04:00
Michael Shaw
1cf54c7fd3
panic: add panic function
...
also remove print messages from APIC driver
2023-10-27 22:41:10 -04:00
Michael Shaw
e27faa1a02
apic: enable IOAPIC and LAPIC, disable 8259
2023-10-27 00:54:51 -04:00
Michael Shaw
4dc4f07dc6
mem: improve device memory mapping
...
MMIO ports will no longer directly map to HHDM addresses and will need
to be searched for in the memory mapping tree
2023-10-24 22:16:33 -04:00
Michael Shaw
c186d3846c
fs: add unlink operation
2023-10-24 01:09:33 -04:00
Michael Shaw
b2cacaf6cd
ext2: fix issues with inode dirent allocation
2023-10-23 19:46:54 -04:00
Michael Shaw
19f32aef3f
ext2: add ability to create files
2023-10-23 17:03:20 -04:00
Michael Shaw
d5ffbda67d
cat: print newline after file contents
2023-10-22 23:55:56 -04:00
Michael Shaw
0a1b73edc2
ext2: slightly clean up indirect read/alloc
2023-10-21 14:25:28 -04:00
Michael Shaw
ca8e1521df
cmd: close fd on cat
2023-10-21 01:07:25 -04:00
Michael Shaw
ad2de927e2
ext2/vfs: implement read fs call
...
also implement the cat command!
2023-10-21 00:46:42 -04:00
Michael Shaw
0029621ada
cmd: add initial commands ls and help
2023-10-20 23:56:01 -04:00
Michael Shaw
08b54c22f5
string: reword strtok
2023-10-19 14:18:33 -04:00
Michael Shaw
25a828437a
fs: move fs init into kernel cmdline
...
Previously, any partition with an ext2 filesystem would be mounted by
the gpt header parser. With this patch, the kernel cmdline `root=val` is
responsible for mounting the root filesystem.
2023-10-19 11:08:54 -04:00
Michael Shaw
8ee80d22c9
mem: add kunmap and begin tracking mapped pages
2023-05-27 23:24:39 -04:00
Michael Shaw
8e6d0d4fbc
kernel: add support for basic type spinlock_t
...
A spinlock is the most basic type of lock. It will attempt to acquire,
and upon failure, will continue attempting indefinitely until it is
successful.
2023-05-27 01:44:33 -04:00
Michael Shaw
0395b65ad8
stdio: add vsnprintf and change printf to kprintf
2023-05-14 01:23:21 -04:00
Michael Shaw
ba332e0e55
main: cleanup kmalloc test
2023-05-11 12:54:31 -04:00
Michael Shaw
ea1c1b337d
rbt: remove verify function
2023-05-10 21:57:40 -04:00
Michael Shaw
c712f0a7d6
kmalloc: add consistency test when KDEBUG is defined
2023-05-10 21:41:25 -04:00
Michael Shaw
4e36cfd90b
lib: add rbtree data structure
...
This also switches the kmalloc allocator over to the new rbtree
structure. As a balanced binary search tree, it is much more efficient
than the previous method
2023-05-10 21:24:19 -04:00
Michael Shaw
1aaeeda22d
acpi: formatting
2023-05-10 01:12:31 -04:00
Michael Shaw
0b81c6cccc
ahci: fix bug with block read and write
2023-05-10 00:40:14 -04:00
Michael Shaw
8544efe1ab
slab: upgrade kmalloc to allow DMA regions
...
these DMA regions are only meant to comply with certain AHCI
requirements, and are not yet general purpose
2023-05-08 01:14:11 -04:00
Michael Shaw
69ee1fd79c
ahci: complete read/write sectors function
2023-05-07 15:21:04 -04:00
Michael Shaw
aa3eb7805d
continue ahci development
2023-05-06 21:30:05 -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
4b813d7c86
remove old idt.c
2023-05-04 21:49:10 -04:00
Michael Shaw
87146087ca
begin ahci driver
2023-05-04 21:47:48 -04:00
Michael Shaw
805650c7b1
acpi: switch to debug logging
2023-05-04 15:39:47 -04:00
Michael Shaw
39c778d2f0
add some asserts
2023-05-04 02:02:17 -04:00
Michael Shaw
605507a688
pci: add simple pci driver
...
this driver only prints devices on the pci bus.
2023-05-03 23:55:54 -04:00
Michael Shaw
1abb003952
acpi: fix parsing errors
2023-04-30 12:16:17 -04:00
Michael Shaw
a2f1ff984c
main: reorganize kmain
2023-04-30 01:09:34 -04:00
Michael Shaw
e1108b3493
mem: improve slabbing to include flags
2023-04-29 16:54:12 -04:00
Michael Shaw
9cf4b71559
revert apic change
...
this is now on its own branch and will be worked on separately from the
main focus of this project, which is to get a VFS and into userspace as
soon as possible
2023-04-22 14:47:46 -04:00
Michael Shaw
22762339f9
irq: begin moving away from 8259
...
8259 PIC was used for interrupts for bootstrap development while the memory manager was being constructed. now that this is complete, a transition to the apic will begin
this patch fixes memory mapping issues with the reserved regions that caused page faults before.
2023-04-22 13:01:46 -04:00
Michael Shaw
7bddf838fd
mem: initialize the stacks
...
the stacks will now no longer be overwritten by the buddy allocator and
have a fixed size macro `KSTACK_SIZE`
2023-04-21 17:56:06 -04:00
Michael Shaw
d7ed4bd777
main: move pic stuff into _pic_init
2023-04-20 17:18:44 -04:00
Michael Shaw
577779f8ae
mem: add kmalloc and kfree
2023-04-20 17:03:10 -04:00
Michael Shaw
fe93196a01
remove atoi test
2023-03-24 03:45:11 -04:00