Commit graph vbos/lib
Author SHA1 Message Date
0aec18db63
lib: add hash table
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-08-12 20:06:48 -04:00
e8effb194e
list: switch lock to mtx
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-08-12 15:38:24 -04:00
071a5651e0
list: change locking discipline
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-08-12 14:50:47 -04:00
1d1dad34ce boot: fix crash on early memory allocations
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-08-11 18:29:51 -04:00
dda38aa265 printf: add lock
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-27 04:41:14 -04:00
c8e0148753 string: add return value to memcpy_user
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-21 06:27:22 -04:00
e1113ec277 string: add memcpy_user
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-21 06:13:56 -04:00
105bdb4464 ahci: add ahci driver
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-14 19:03:10 -04:00
fa34746870 errno: add EROFS
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-12 14:56:15 -04:00
c4ec0bdf21 tty: move tty/ from drivers/ to kernel/
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-12 11:05:30 -04:00
1dde87423d string: fix NULL pointer dereferences
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-11 23:55:21 -04:00
260ed8a013 math: correct hexc_to_int
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-06 19:34:13 +02:00
c46976eb1f string: fix strncmp
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-05 23:15:11 +02:00
0c29f0e517 vfs: restructure vfs to reduce various errors
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-05 15:55:26 +02:00
eb41b17fea vfs: fix various logical errors in the vfs
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-05 15:18:34 +02:00
dd00e79b18 vfs: fix logic errors and leaks in vfs_open
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-02 14:09:41 +02:00
a8540494a9 vfs: add vfs_open
vfs_open parses a path and returns the correct inode. The out inode is a
double pointer argument passed to vfs_open, and the return value is an
error code, or 0

Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-01 23:06:39 +02:00
913b91189b rwlock: fix deadlock condition
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-06-28 19:51:14 +02:00
f0a9ff299b gitignore: add .cpio
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-06-28 17:13:41 +02:00
750ffa2e16 fs: add ramfs 2026-05-12 07:31:17 -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
d6873d6c7a kv2: add paging
this also fixes up a bunch of formatting, adding the type vaddr_t

Signed-off-by: Michael Shaw <spencershawiscool@gmail.com>
2026-04-13 00:04:26 -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
5159a530c6 ext2: increment block on large reads 2025-02-14 16:31:16 -05:00
Michael Shaw
4ec7ff5aaa ipc: add fifo 2025-02-12 20:01:48 -05:00
Michael Shaw
15c0de6de8 lock: add mutex
Signed-off-by: Michael Shaw <spencershawiscool@gmail.com>
2025-02-11 21:34:08 -05:00
Michael Shaw
b9ffc10ace atomic: replace operand size with 32-bit %eax 2024-11-26 21:10:35 -05:00
Michael Shaw
eae487678c stdio: add line feed on new line 2024-08-21 01:39:38 -04:00
Michael Shaw
9c5d722f72 atomic: replace movq $0 with xorq 2024-07-05 05:51:11 -04:00
Michael Shaw
52ba70f4b7 dev: remove console driver, merge into serial
Signed-off-by: Michael Shaw <spencershawiscool@gmail.com>
2024-06-17 20:32:44 -04:00
Michael Shaw
cb288f547e syscall: fix page fault on non-existent syscall
Signed-off-by: Michael Shaw <spencershawiscool@gmail.com>
2024-06-13 22:59:38 -04:00
Michael Shaw
e4116bd3e8 lib: move lock/atomic into lib folder 2024-03-19 00:19:42 -04:00
Michael Shaw
b5d8e0a2f7 rbtree: edit ifs to conform to kernel style 2024-02-28 03:16:53 -05:00
Michael Shaw
1b39d3f863 sem: implement semaphore 2024-02-22 03:35:02 -05:00
Michael Shaw
c487c4c9dd devfs: add vnodes to devfs tree 2024-02-12 21:11:56 -05:00
Michael Shaw
c296cb9cf1 sort: add qsort 2024-02-07 22:59:20 -05:00
Michael Shaw
a6b7d9b42d lib: add basic stack type
I can't believe I've made it this far without needing one
2024-01-30 22:08:36 -05:00
Michael Shaw
a10509f1e5 lib: move lib headers into lib directory 2024-01-30 22:00:20 -05:00
Michael Shaw
874e63e41c tty: add stubs for console_write and console_read 2023-11-29 19:37:04 -05:00
Michael Shaw
e2d9609bf7 console: rename console_write to console_putchar 2023-11-29 19:33:56 -05:00
Michael Shaw
146e9b775e rbtree: fix bug in delete fixup causing page fault 2023-11-27 14:27:56 -05:00
Michael Shaw
3dda839cdd syscall: implement write syscall 2023-11-22 23:27:39 -05:00
Michael Shaw
aac47e60f3 proc: free pages and fds after proc termination 2023-11-22 21:55:52 -05:00
Michael Shaw
823f811954 mmap: generalize mmap
also add a range search function to ensure that memory allocations do
not overlap in virtual space
2023-11-15 16:56:29 -05:00
Michael Shaw
a85be6eb62 elf: add basic elf parsing 2023-11-15 12:50:46 -05:00
Michael Shaw
2fe0b0068b sched: begin scheduling module 2023-11-13 22:23:06 -05:00
Michael Shaw
06b02fc9a6 kmalloc: add fallback for failed DMA allocations 2023-11-03 14:43:53 -04:00
Michael Shaw
d813fabae9 boot: start APs after BSP init 2023-11-01 15:29:45 -04:00
Michael Shaw
4dc4f07dc6 mem: improve device memory mapping
MMIO ports will no longer directly map to HHDM addresses and will need
to be searched for in the memory mapping tree
2023-10-24 22:16:33 -04:00