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
Michael Shaw
f001be171c
console: add console_resize()
2023-03-15 03:32:47 -04:00
Michael Shaw
9a4ff385bd
pic: enable legacy pic serial interrupts
2023-03-14 04:25:06 -04:00
Michael Shaw
f761328163
init: fix msr hex
2023-03-11 20:51:40 -05:00
Michael Shaw
957e56e959
init: remove stack frames from msr asm functions
...
Signed-off-by: Michael Shaw <spencershawiscool@gmail.com>
2023-03-11 20:49:44 -05:00
Michael Shaw
90e099aedf
acpi: Fixed RSDT printf
2023-03-11 20:41:08 -05:00
Michael Shaw
d5f388208c
mem: formatting fix
2023-03-09 01:59:21 -05:00
Michael Shaw
bb76bcac6c
Modify to allow unmapping easily
2023-03-05 17:02:02 -05:00
Michael Shaw
705abf3234
mem: fixed memory mapping bugs with kmap
...
function `kmap` is now capable of reliably mapping physical addresses to
virtual addresses
Signed-off-by: Michael Shaw <spencershawiscool@gmail.com>
2023-03-04 22:42:08 -05:00
Michael Shaw
ffddd592da
mem: begin work on pager
2023-03-04 16:46:33 -05:00
Michael Shaw
2b9d76d015
mem: add page entry type
2023-03-01 14:20:13 -05:00
Michael Shaw
644508ee45
Added license identifiers to all files
2023-02-28 22:14:06 -05:00
Michael Shaw
2c590e677d
moved apic init to apic_init()
2023-02-28 21:30:38 -05:00
Michael Shaw
249231e7ea
edited some printf messages
2023-02-28 21:17:48 -05:00
Michael Shaw
24a6a79b78
removed useless prints
2023-02-28 20:33:18 -05:00
Michael Shaw
92396db851
stdio: Added LOG_ specifiers to all prints
...
Signed-off-by: Michael Shaw <spencershawiscool@gmail.com>
2023-02-28 20:32:39 -05:00
Michael Shaw
57ed3eefe6
apic: Added madt entry struct types
...
This also moves madt parsing to apic.c
2023-02-28 19:51:37 -05:00
Michael Shaw
d5ea43e05a
add support for MSRs and basic bitwise ops
2023-02-28 18:07:12 -05:00
Michael Shaw
198da59763
acpi: Change L-APIC to LAPIC
...
Signed-off-by: Michael Shaw <spencershawiscool@gmail.com>
2023-02-28 17:29:19 -05:00
Michael Shaw
f1eae61f10
acpi: remove slash from "I/O-APIC"
2023-02-28 17:28:20 -05:00
Michael Shaw
ff6aaae032
acpi: rename parse_next_madt_entry
2023-02-28 17:26:33 -05:00
Michael Shaw
1c428a6104
acpi: increment 'n' in parse_next_madt_entry
2023-02-28 17:25:47 -05:00
Michael Shaw
b8599a4e8e
Add madt_entry_types and print out value
2023-02-28 17:24:32 -05:00
Michael Shaw
2146b49bb3
added rsdt parse functionality
...
this function prints out the RSDT entries present in the system
2023-02-27 22:55:06 -05:00
Michael Shaw
0cc86fc37d
Add support for limine RSDP request
2023-02-27 20:53:41 -05:00
Michael Shaw
4410dde3f2
Change _start to kmain
2023-02-27 18:46:50 -05:00
Michael Shaw
ca5351b847
Added support for basic x86 features
...
Includes 'gdt', 'idt' and a serial driver
2023-02-27 18:36:15 -05:00
Michael Shaw
39ed861359
Remove erroneous 'write' function
2023-02-27 14:17:32 -05:00