very bad os
  • C 96%
  • Assembly 1.8%
  • Makefile 1.6%
  • Shell 0.4%
  • Linker Script 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
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
dev usr: implement user process switching 2023-11-20 22:07:35 -05:00
fs vfs: remove extra print statement 2023-11-15 13:40:56 -05:00
include usr: implement user process switching 2023-11-20 22:07:35 -05:00
init usr: implement user process switching 2023-11-20 22:07:35 -05:00
lib mmap: generalize mmap 2023-11-15 16:56:29 -05:00
mem usr: implement user process switching 2023-11-20 22:07:35 -05:00
sched usr: implement user process switching 2023-11-20 22:07:35 -05:00
usr.bin usr: implement user process switching 2023-11-20 22:07:35 -05:00
.gitignore usr: add first userspace program 2023-11-15 15:13:53 -05:00
COPYING Add license 2023-02-28 22:22:56 -05:00
linker.ld mem: fixed memory mapping bugs with kmap 2023-03-04 22:42:08 -05:00
Makefile usr: add first userspace program 2023-11-15 15:13:53 -05:00
README.md update README 2023-10-22 23:58:32 -04:00

vbos - very bad os - now with ext2 filesystem!

This is still an early project. It supports a very select few commands and is under heavy development. This is very much a for-fun project

License

This project is licensed under GPL-2.0-only, a copy of which can be found in the COPYING file. All source files, except for limine.h are released under this license.

Copyright 2023 Michael Shaw.