r/osdev • u/Molyuuing • 5d ago
Finally I've reached a minimal FreeBSD userspace



After a month of work, finally I've reached a minimal FreeBSD userspace.
Now it has:
- A userspace Mach-O loader, with dynamic link supports
- initd, netd, vfsd, devmgrd, usbd, acpid, etc.
- A multitasking system fully based on Rust Future premitives, powered by EEVDF scheduling algorithm.
- An object-orientd capability system inspired by seL4, Objective-C and abi_stable, which supports trait based polymorphism. The accompanying ipc-codegen can directly generate SDK crates from server-side code (the kernel is also a server). IPC calls and even system calls are as simple as calling a regular Rust crate. Kernel also provides a asynchronous primitive to support asynchronous object method calls between processes. Everything in kernel is object.
- A Mach-O linker written in Rust
- A filesystem based on GEFS
Except FreeBSD codes and a few assembly, everything is written in Rust.
7
Upvotes
1
u/DescriptionOptimal15 5d ago
Doesn't it already have a userspace