Commit graph vbos/init
Author SHA1 Message Date
cd916f624b proc: enter into userspace
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-19 19:25:38 -04:00
6b40cca5b0 proc: add basic proc loading
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-17 20:11:19 -04:00
45c88c16e4 fbcon: add palette
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-17 03:35:47 -04:00
4909482a2e tty: add tee
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-17 02:38:00 -04:00
0592f4d746 drivers: add flanterm
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-17 01:57:45 -04:00
c01b1d7eee syscall: add basic syscall entry
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-15 16:36:38 -04:00
5692aa8120 main: add global kernel ready bool
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-14 23:35:13 -04:00
105bdb4464 ahci: add ahci driver
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-14 19:03:10 -04:00
bd02ddc640 testprogram: add gitignore'd testprogram
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-14 14:36:37 -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
7c7d052286 main: add tty layer to kmain
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-12 00:14:46 -04:00
9bbe42b95a main: remove debug function
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-10 14:53:41 -04:00
ef941d094b init: remove tty from main
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-10 13:02:05 -04:00
2d92031189 main: remove readdir test
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-10 12:59:10 -04:00
cfda99c7c7 main: add initramfs read test
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-10 12:57:52 -04:00
acf469ff71 vfs: initcpio: read initramfs.cpio file into vfs
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-09 21:18:57 -04:00
4c0c5ea592 kmain: reformat
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-06-28 17:23:18 +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
e5b55a6ba5 x86: add GDT and IDT
Signed-off-by: Michael Shaw <spencershawiscool@gmail.com>
2026-04-13 04:23:14 -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
a28088aea6 proc: fix deadlock after process exit 2025-02-12 09:57:44 -05:00
Michael Shaw
eeee9c1638 ahci: handle blocking threads 2025-02-11 21:29:36 -05:00
Michael Shaw
f92e88597d sched: fix page faulting on process switching
This is the first version of the kernel with fully isolated threads for
user and kernel tasks, where process 0 is only used for scheduling and
interrupt handling.

User process have a "buddy" kernel process that handles its tasks in the
kernel.

This system allows for easy blocking of threads without much need for
thought. Just `sswtch` in an infinite read loop, and your userspace
process will be blocked.

Signed-off-by: Michael Shaw <spencershawiscool@gmail.com>
2025-02-11 21:11:49 -05:00
Michael Shaw
72827c1e00 sched: improve thread handling on system calls 2025-02-11 18:58:00 -05:00
Michael Shaw
89672d02f4 sched: add kthread interface for system calls 2025-02-09 20:56:25 -05:00
Michael Shaw
d67c828c6f syscall: enable fast syscall instruction 2024-06-27 13:11:50 -04:00
Michael Shaw
f575a056bf main: fully disable interrupts until booted 2024-06-17 22:26:56 -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
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
f86ce66c75 sched: reschedule on sched interrupt 2024-06-17 18:00:32 -04:00
Michael Shaw
f03a30e07e irq: enable LAPIC timer
Signed-off-by: Michael Shaw <spencershawiscool@gmail.com>
2024-06-17 17:53:55 -04:00
Michael Shaw
9ed457728d exception: initialize explicit exception handlers 2024-06-13 22:52:59 -04:00
Michael Shaw
4a997cec35 trap: explicitly handle certain exceptions 2024-06-13 22:51:18 -04:00
Michael Shaw
e4116bd3e8 lib: move lock/atomic into lib folder 2024-03-19 00:19:42 -04:00
Michael Shaw
f482174458 atomic: clean up atomic_cmpxchg 2024-03-19 00:15:28 -04:00
Michael Shaw
aed0510075 main: include mistakenly removed header 2024-02-22 03:45:25 -05:00
Michael Shaw
9d9f4f24c3 main: destroy semaphore after use 2024-02-22 03:38:19 -05:00
Michael Shaw
0af0c3cbdc main: use semaphore to wait for AP init 2024-02-22 03:37:40 -05:00
Michael Shaw
2009a9adb7 cmd: ls: close dir file when done 2024-02-13 00:12:31 -05:00
Michael Shaw
42acd462b3 cmd: ls: print file name when file is not dir 2024-02-13 00:03:16 -05:00
Michael Shaw
3b247ad5e9 devfs: add console to devfs 2024-02-12 23:24:15 -05:00
Michael Shaw
285086d77d vfs: remove opendir, readdir, closedir 2024-02-12 22:47:18 -05:00
Michael Shaw
c487c4c9dd devfs: add vnodes to devfs tree 2024-02-12 21:11:56 -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