Michael Shaw
b8fa30c8ed
mem: change buddy allocator api
...
the buddy allocator now returns HHDM addresses as void* rather than
zero-based adddresses as paddr_t. it also automatically searches regions
now, rather than requiring a (struct mem_region_header *) for each
alloc/free
2023-04-13 17:36:04 -04:00
Michael Shaw
4f4af0946d
mem: implement buddy allocator
2023-04-12 13:58:22 -04:00
Michael Shaw
9a4ff385bd
pic: enable legacy pic serial interrupts
2023-03-14 04:25:06 -04:00
Michael Shaw
d5f388208c
mem: formatting fix
2023-03-09 01:59:21 -05:00
Michael Shaw
84b40e3eda
mem: add type paddr_t
2023-03-05 17:10:08 -05:00
Michael Shaw
bb76bcac6c
Modify to allow unmapping easily
2023-03-05 17:02:02 -05:00
Michael Shaw
e1fa7736a1
common.h: add bitwise.h
2023-03-05 04:59:15 -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
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
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
bae9ffa930
Initial commit
2023-02-27 14:14:37 -05:00