Commit graph

318 commits

Author SHA1 Message Date
Michael Shaw
05486bbcc8 vfs: remove freed vnode references from dirents 2024-01-31 20:11:32 -05:00
Michael Shaw
82fca21452 ext2: copy dirents to fixed-size array 2024-01-31 20:06:51 -05:00
Michael Shaw
78c3474c10 ext2: remove unused ext2_read_vno 2024-01-31 20:02:28 -05:00
Michael Shaw
5217f9b199 vfs: remove hack from vfs_open 2024-01-30 22:42:35 -05:00
Michael Shaw
30774dd58a vfs: remove unused read_vno fs_ops function 2024-01-30 22:41:54 -05:00
Michael Shaw
a75cf5b5c6 vfs: clean up free logic and vfs_close 2024-01-30 22:38:33 -05:00
Michael Shaw
2c553ed124 vfs: remove horrible fd_special temporary hack 2024-01-30 22:34:29 -05:00
Michael Shaw
ef0a8674ae vfs: free vnodes when file is not found 2024-01-30 22:24:52 -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
2f20777a47 fs: move directory parsing to vfs
Previously, the vfs heavily relied on the physical filesystem for
directory parsing, which limited capabilities to a single filesystem,
save letter-based indexing which will not be used.

Now, vnodes are parsed in the VFS, and only requested on-demand, greatly
reducing complexity and reliance on physical drivers for handling.

This temporarily removes the ability to create files with the current
drivers.
2024-01-30 18:54:59 -05:00
Michael Shaw
5cf9f9aaae Makefile: clean up and remove GNUisms 2024-01-30 02:18:29 -05:00
Michael Shaw
070af3aba0 fs: reorginize memory allocations and frees 2024-01-30 00:09:56 -05:00
Michael Shaw
aee65e1dd2 vfs: add new ext2 ops 2024-01-29 23:51:03 -05:00
Michael Shaw
d1ea8f617e ext2: add direct vnode controls to filesystem 2024-01-29 23:27:43 -05:00
Michael Shaw
d54aa794c5 ext2: mark root vnode no_free 2024-01-26 18:47:34 -05:00
Michael Shaw
d61edcbe7b ext2: use struct vnode instead of struct file 2024-01-26 18:41:09 -05:00
Michael Shaw
963a58cb53 fs: read root inode on fs init 2024-01-25 00:43:50 -05:00
Michael Shaw
f9d8d727f4 gpt: edit inaccurate comment 2024-01-24 22:01:42 -05:00
Michael Shaw
e7434667b8 vfs: add vfs_mount 2024-01-24 22:00:47 -05:00
Michael Shaw
0aad59dca9 remove iotest 2024-01-24 21:32:18 -05:00
Michael Shaw
2e93013e12 vfs: add root vnode to fs struct 2024-01-24 20:10:49 -05:00
Michael Shaw
848c374d12 vfs: add type macros for directory entries 2024-01-24 20:09:27 -05:00
Michael Shaw
e2ea205129 proc: hack in special file descriptors
The previos commit broke executions of all program files due to a NULL
memory access when inserting special file descriptors. This will be
replaced when some sort of /dev fs is implemented
2024-01-24 18:49:06 -05:00
Michael Shaw
b7c10e80c2 vfs: complete restructure of vfs 2024-01-24 18:15:04 -05:00
Michael Shaw
67050f1a93 vfs: begin restructuring of vfs 2024-01-24 02:04:42 -05:00
Michael Shaw
c4ab990fe8 proc: add fallthrough for blocked/running procs 2024-01-22 21:47:24 -05:00
Michael Shaw
7f13dbfa16 vfs: fix edge case when returned fd is null 2023-12-03 22:58:24 -05:00
Michael Shaw
dc8f7126dc console: add license identifier 2023-11-29 20:04:37 -05:00
Michael Shaw
5136aba0bd sched: fix edge case on kernel process 2023-11-29 20:03:15 -05:00
Michael Shaw
c1287cecef proc: add state for blocking process 2023-11-29 19:50:30 -05:00
Michael Shaw
a9196db5b3 sched: attempt to schedule next process 2023-11-29 19:45:21 -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
ec542bd43e entry: remove redundant call to proc_current_regs 2023-11-27 02:54:30 -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
bd9786cbe0 init: init processes before AHCI 2023-11-26 22:27:59 -05:00
Michael Shaw
53132725c5 entry: change syscall function 2023-11-22 23:36:57 -05:00
Michael Shaw
3dda839cdd syscall: implement write syscall 2023-11-22 23:27:39 -05:00
Michael Shaw
f6e1419961 console: clear line on exec 2023-11-22 22:04:11 -05:00
Michael Shaw
1fcac9b274 slab: correct lock pointers 2023-11-22 21:58:41 -05:00
Michael Shaw
aac47e60f3 proc: free pages and fds after proc termination 2023-11-22 21:55:52 -05:00
Michael Shaw
83731d6eab proc: slab allocate proc structs 2023-11-22 21:29:15 -05:00
Michael Shaw
f8b801236a vfs: remove kernel file descriptor numbers 2023-11-22 21:09:05 -05:00
Michael Shaw
18bcf40094 vfs: remove old vfs.h file 2023-11-22 20:48:23 -05:00
Michael Shaw
271d9a1fea elf: correctly load data segment 2023-11-22 20:15:24 -05:00
Michael Shaw
abbad89d7f page: modify attributes of parent page tables 2023-11-22 01:24:06 -05:00
Michael Shaw
0a0235612e syscall: change handling of exceptions and traps 2023-11-21 19:19:35 -05:00
Michael Shaw
b595652ef4 README: add info about recent updates and usage 2023-11-21 17:32:10 -05:00