Commit graph vbos/usr.bin
Author SHA1 Message Date
Michael Shaw
02c0a70a30 vfs: refcount file structs used in fdescs 2024-08-21 15:44:50 -04:00
Michael Shaw
744c3b266f syscall: implement fork fully 2024-08-21 15:10:16 -04:00
Michael Shaw
e7133a473f proc: add proc_fork and accompanying syscall
Signed-off-by: Michael Shaw <spencershawiscool@gmail.com>
2024-06-18 11:14:15 -04:00
Michael Shaw
b753afd4fb sched: properly implement blocking for read
This is a milestone update, as userspace applications are now able to
properly read from TTY devices, be blocked while waiting, and write the
output back. Userspace development will move much faster now that these
kinks have been worked out.

This version will be tagged as vbos v0.01

Signed-off-by: Michael Shaw <spencershawiscool@gmail.com>
2024-06-17 22:19:25 -04:00
Michael Shaw
2c42102cea usr.bin/shtest: remove debug write 2024-02-19 02:47:24 -05:00
Michael Shaw
a1559a1664 sched: unblock process after blocking read syscall 2024-02-19 02:46:35 -05:00
Michael Shaw
05103a8122 usr.bin: create bin folder in make.sh 2024-02-19 02:35:36 -05:00
Michael Shaw
3b1dc7e153 usr.bin: add shtest
shtest is a simple userland shell test program that accepts input and
echoes it back to the user
2024-02-19 02:25:34 -05:00
Michael Shaw
e9f5935d48 Makefile: change usr.bin build system 2024-02-13 14:16:07 -05:00
Michael Shaw
ab1989c965 usr.bin: add vfs test for device files 2024-02-13 00:30:19 -05:00
Michael Shaw
9c544a85cb Makefile: fix multi-compilation 2024-02-08 14:13:45 -05:00
Michael Shaw
0aad59dca9 remove iotest 2024-01-24 21:32:18 -05:00
Michael Shaw
e2d9609bf7 console: rename console_write to console_putchar 2023-11-29 19:33:56 -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
3dda839cdd syscall: implement write syscall 2023-11-22 23:27:39 -05:00
Michael Shaw
271d9a1fea elf: correctly load data segment 2023-11-22 20:15:24 -05:00
Michael Shaw
37518aea81 usr: implement user process switching
This is a rather large commit, so the gist of it is this:

User context switching is now functional, after a change to the TSS, and
a few minor details in the scheduler and loader.

ELF parsing is rather primitive, but basically functional, as long as it
only loads code.

The interrupt 0x80 is for syscalls, and will switch from user mode to
kernel mode. It is currently the only interrupt that can be called from
user mode

This adds the syscall functionality, which currently uses a red-black
tree to store the function pointers, although when the table is more
flushed out, it will probably be replaced with an array

The pager now correctly marks the parent nodes with attributes as it
allocates them. Without doing this, the page table entries will never be
reached in lower privilege modes, causing page faults

Signed-off-by: Michael Shaw <spencershawiscool@gmail.com>
2023-11-20 22:07:35 -05:00
Michael Shaw
bcf6906e72 usr: add first userspace program 2023-11-15 15:13:53 -05:00