Commit graph

45 commits

Author SHA1 Message Date
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
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
25abb1f0f5 stdio: Added LOG_ERROR and LOG_SUCCESS
Signed-off-by: Michael Shaw <spencershawiscool@gmail.com>
2023-02-28 20:25:50 -05:00
Michael Shaw
93fe0a1d2f removed temporary printf_error 2023-02-28 20:04:14 -05:00
Michael Shaw
39cbf48b63 stdio: added printf_error 2023-02-28 20:00:53 -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
6627486995 apic: added madt entry struct types
This also moves the madt parsing to the apic.c file
2023-02-28 19:50:56 -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
Michael Shaw
bae9ffa930 Initial commit 2023-02-27 14:14:37 -05:00