Commit graph

69 commits

Author SHA1 Message Date
Michael Shaw
a1329f092b mem: add comment explaining buddy allocator concept 2023-04-14 12:50:56 -04:00
Michael Shaw
4595f35e4f mem: rename mem_region_header to buddy_region_header 2023-04-14 12:47:30 -04:00
Michael Shaw
59509f4448 mem.h: remove incorrect HHDM_START macro 2023-04-14 12:39:44 -04:00
Michael Shaw
98c99b1780 mem: reorganize buddy.c 2023-04-14 09:03:01 -04:00
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
a506cc481e mem: removed unncessary messages and allocation 2023-04-13 13:12:21 -04:00
Michael Shaw
a089d09322 add todo lol 2023-04-12 19:10:39 -04:00
Michael Shaw
758d120903 mem: remove non-compliant section 2023-04-12 19:09:20 -04:00
Michael Shaw
062d14bde3 mem: remove buddy_alloc tests 2023-04-12 18:23:24 -04:00
Michael Shaw
8d538db27d mem: add buddy_free 2023-04-12 18:21:16 -04:00
Michael Shaw
bd0ded5d61 buddy_alloc: fix problem with splitting pages 2023-04-12 16:46:15 -04:00
Michael Shaw
4f4af0946d mem: implement buddy allocator 2023-04-12 13:58:22 -04:00
Michael Shaw
fe93196a01 remove atoi test 2023-03-24 03:45:11 -04:00
Michael Shaw
2694098d62 printf: mv lib/printf.c lib/stdio.c 2023-03-15 03:35:17 -04:00
Michael Shaw
3215605b2d add console 2023-03-15 03:33:03 -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
667d01e418 serial.h: change type of serial_init to int 2023-03-13 18:16:02 -04:00
Michael Shaw
3b203fa698 serial.c: include serial.h 2023-03-13 18:15:14 -04:00
Michael Shaw
bb6de2047e serial: move COM1 to serial.h 2023-03-13 18:10:19 -04:00
Michael Shaw
04805857c4 apic.h: add apic redirection entry struct 2023-03-13 17:53:17 -04:00
Michael Shaw
894916b407 mem: add print for memory region types 2023-03-13 04:50:37 -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
48e24085f6 stdio.h: shortened LOG_ prefixes 2023-03-11 20:43:40 -05:00
Michael Shaw
90e099aedf acpi: Fixed RSDT printf 2023-03-11 20:41:08 -05:00
Michael Shaw
df048d9f11 Actually remove the line 2023-03-10 21:35:10 -05:00
Michael Shaw
eb5a22a0d0 Remove currently unused variable 2023-03-10 21:34:44 -05:00
Michael Shaw
806ece61f9 mem: mv mem/pfa.c -> mem/early.c 2023-03-09 02:00:07 -05: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
c278665916 mv README -> README.md 2023-03-05 04:54:27 -05:00
Michael Shaw
6bcbf1eb56 Add readme 2023-03-05 04:53:55 -05:00
Michael Shaw
ba3434b930 fix kmap entry in 2023-03-04 22:47:31 -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
01a2dde3cb apic: remove useless variable 2023-03-01 00:59:34 -05:00
Michael Shaw
edf996b579 apic: change print messages 2023-03-01 00:59:16 -05:00
Michael Shaw
f4f4d3150e apic: moved declaration outside of switch statement 2023-02-28 23:00:01 -05:00
Michael Shaw
e59763a078 Makefile: Remove unncessary nasm stuff 2023-02-28 22:38:09 -05:00
Michael Shaw
aa08c0a63c Add license 2023-02-28 22:22:56 -05:00
Michael Shaw
644508ee45 Added license identifiers to all files 2023-02-28 22:14:06 -05:00
Michael Shaw
977ea64457 stdio: fixed the 'x' case in printf
Signed-off-by: Michael Shaw <spencershawiscool@gmail.com>
2023-02-28 22:05:03 -05:00
Michael Shaw
b525b0609b apic: added ioapic r/w functions 2023-02-28 21:48:10 -05:00
Michael Shaw
0088870a82 apic: added lapic register offset macros 2023-02-28 21:43:07 -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