b5a6c0bc97
Makefile: create initramfs.cpio
...
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-11 20:11:43 -04:00
a252a3f8e9
kv2: initialize memory manager, early pci devices
...
Signed-off-by: Michael Shaw <spencershawiscool@gmail.com>
2026-05-12 03:00:45 -04:00
Michael Shaw
584a79f355
kv2: add new build modular system
...
Signed-off-by: Michael Shaw <spencershawiscool@gmail.com>
2026-04-12 10:37:43 -04:00
Michael Shaw
552f45c258
config initial test
...
Signed-off-by: Michael Shaw <spencershawiscool@gmail.com>
2026-04-12 08:45:35 -04:00
Michael Shaw
d2ef885e8d
v2 initial commit
2026-04-11 11:35:31 -04:00
Michael Shaw
2c97dba9f7
Makefile: add fno-builtin
2025-03-10 02:49:01 -04:00
Michael Shaw
cfe2ee22fb
Makefile: print message before action
...
Signed-off-by: Michael Shaw <spencershawiscool@gmail.com>
2024-06-17 20:25:28 -04:00
Michael Shaw
b801bdc5f0
Makefile: always attempt to compile usr.bin
2024-02-25 17:35:30 -05:00
Michael Shaw
e9f5935d48
Makefile: change usr.bin build system
2024-02-13 14:16:07 -05:00
Michael Shaw
9c544a85cb
Makefile: fix multi-compilation
2024-02-08 14:13:45 -05:00
Michael Shaw
5cf9f9aaae
Makefile: clean up and remove GNUisms
2024-01-30 02:18:29 -05:00
Michael Shaw
0297f4a34c
syscall: imeplement basic file IO syscalls
...
also fix a bug where the RAX register would be restored to its initial
state instead of carrying the syscall return value
2023-11-27 02:48:52 -05:00
Michael Shaw
bcf6906e72
usr: add first userspace program
2023-11-15 15:13:53 -05:00
Michael Shaw
39bb50a992
Makefile: only search for files in KDIRS
2023-11-15 13:59:12 -05:00
Michael Shaw
69ad7ea220
Makefile: remove -Wextra
2023-10-19 22:12:58 -04:00
Michael Shaw
29a0435cf6
slab: replace struct slab with slab_t
...
This type should never be modified by the user, and only passed into the
functions in slab.c. Using a typedef to notifies the user semantically
of this fact
2023-05-19 16:49:34 -04:00
Michael Shaw
0395b65ad8
stdio: add vsnprintf and change printf to kprintf
2023-05-14 01:23:21 -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
14a681c53e
string: add strsplit
2023-05-09 23:00:07 -04:00
Michael Shaw
39c778d2f0
add some asserts
2023-05-04 02:02:17 -04:00
Michael Shaw
1fe7b002cf
Makefile: O0->O2
2023-04-29 15:17:11 -04:00
Michael Shaw
addf96aae7
mem: fix bug with slab_create
...
before this would overwrite into the next region, which would cause an
error at `buddy_alloc_helper` as the region overridden was the `len`
field of a `struct buddy_free_list`
2023-04-20 21:43:43 -04:00
Michael Shaw
c1628a90d0
Makefile: change O0 to O2
2023-04-20 17:05:23 -04:00
Michael Shaw
98c99b1780
mem: reorganize buddy.c
2023-04-14 09:03:01 -04:00
Michael Shaw
4f4af0946d
mem: implement buddy allocator
2023-04-12 13:58:22 -04:00
Michael Shaw
d5f388208c
mem: formatting fix
2023-03-09 01:59:21 -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
e59763a078
Makefile: Remove unncessary nasm stuff
2023-02-28 22:38:09 -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
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