r/osdev • • 7d ago

Syscalls, do you pass the arguments on the stack or through the registers ?

58 Upvotes

Linux passes arguments to syscalls through registers. But because there can be no more than six arguments passed this way and each argument can’t be longer than a register, more often than not theses arguments are just pointers to a struct somewhere else in memory

On the other hand, old unixes passed arguments on the stack. That means you can pass your whole structs directly instead of through references

To me passing arguments through the stack seems more appealing, because it seems easier to update existing syscalls, that being on the stack means probably less cache misses when passing args around and it gives me a more straightforward way to implement "variadic" syscalls

On the other hand most OSs seem to pass arguments through registers, so I suppose there is a good reason for that. What’s your thoughts on this ? How did you implement your syscalls ?


r/osdev • • 6d ago

S-AOS v3.2 — Major GUI Release

0 Upvotes
Setup
DoomGeneric
Browser
Files
Notepad
Desktop
Boot Menu
TUI
CLI

S-AOS v3.2 is my latest major release, bringing the full GUI environment to S-AOS while retaining the existing CLI and TUI systems.

S-AOS is primarily written in x86/x86-64 NASM assembly and includes its own boot process, kernel, drivers, filesystem support, applications, networking stack, and graphical environment.

TUI

The TUI provides a full text-based system environment without requiring the graphical desktop.

It provides:

  • System command interface
  • Application launching
  • File and directory operations
  • Storage interaction
  • System information
  • Date and time functions
  • User-data access
  • Configuration and system controls
  • Keyboard-driven navigation
  • Text-based system utilities
  • Access to the underlying S-AOS command environment

The TUI remains available alongside the GUI rather than being replaced by it.

GUI

The GUI is the main new part of v3.2.

S-AOS boots into a graphical environment with a desktop, graphical boot selection, lock screen, menus, applications, mouse interaction, and framebuffer-based rendering.

Desktop

The desktop provides the main graphical workspace for S-AOS.

It includes:

  • Graphical desktop environment
  • Start menu
  • Application launching
  • Mouse interaction
  • Keyboard interaction
  • Desktop controls
  • System interface elements
  • 1920×1080 framebuffer support
  • Lower-resolution fallback support

Boot Menu

S-AOS includes a graphical boot menu allowing the available system modes to be selected before entering the operating environment.

The system supports different execution environments including:

  • 16-bit
  • 32-bit
  • 64-bit
  • GUI environment

Lock Screen

The GUI includes a lock screen with persistent user-data handling and password authentication.

File Manager

The graphical file manager provides access to the FAT32 filesystem from inside the GUI.

It can interact with files and directories stored on the system and uses the underlying S-AOS storage and filesystem code rather than being a mock interface.

Editor / Notepad

S-AOS includes graphical text-editing applications for creating and editing text inside the operating system.

The editor works directly with the S-AOS filesystem and user-data system.

Calculator

A graphical calculator application is included as part of the desktop environment.

Draw

S-AOS includes a graphical drawing application for interacting with the framebuffer through the GUI.

Shell

The GUI also provides access to the S-AOS shell, allowing the graphical environment to coexist with the command-based system.

The GUI does not replace the underlying operating-system interface.

Settings / Control Center

System configuration and control functionality is exposed through graphical system interfaces.

System

Underneath the TUI and GUI, S-AOS contains the core components required to operate the machine.

Boot & CPU

  • Custom BIOS/MBR boot process
  • 16-bit startup environment
  • 32-bit execution
  • 64-bit execution
  • 64-bit kernel
  • GDT
  • IDT
  • CPU exception handling
  • Page-fault handling
  • System-level memory management

Graphics

  • VBE graphics
  • Framebuffer rendering
  • 32-bit graphical framebuffer
  • 1920×1080 support
  • 1024×768 fallback
  • GUI rendering
  • Mouse-driven graphical interaction

Input

  • PS/2 keyboard driver
  • PS/2 mouse driver
  • Mouse wheel support
  • QWERTY keyboard support
  • AZERTY keyboard support

Storage

  • ATA PIO driver
  • FAT32 filesystem
  • USB/xHCI support
  • Disk enumeration
  • FAT32 mounting
  • File creation and access
  • Directory operations
  • Cluster allocation
  • Persistent writes
  • FAT handling
  • Persistent user data

Audio

S-AOS includes Sound Blaster 16 / PC-SB16-compatible audio support, allowing applications such as FreeDoom to use system audio.

Networking

S-AOS includes an Intel E1000 network driver and a working networking path through:

E1000 → Ethernet → ARP → IPv4 → DNS → HTTP

The networking system is used by the experimental browser and provides the foundation for higher-level network functionality.

Applications

The GUI currently includes several built-in applications and system tools:

  • File Manager
  • Editor
  • Notepad
  • Calculator
  • Draw
  • Shell
  • Settings
  • Control Center
  • FreeDoom / DoomGeneric

S-AOS also contains the XEC application environment with support for 16-bit, 32-bit, and 64-bit application targets.

Browser

S-AOS includes an experimental browser/HTML environment.

It currently connects through the S-AOS networking stack and can retrieve and display basic web content using HTTP.

The current path is:

E1000 → Ethernet → ARP → IPv4 → DNS → HTTP → HTML

HTTPS/TLS is planned for future networking work.

FreeDoom

FreeDoom is integrated into the S-AOS graphical environment through DoomGeneric.

It uses the S-AOS graphics, input, and audio subsystems rather than simply being a screenshot or mock application.

Running S-AOS

S-AOS can be tested in QEMU with:

& "C:\Program Files\qemu\qemu-system-x86_64.exe" -m 512M -machine pc -drive file="S-AOS.img",format=raw,if=ide -boot c -action reboot=reset -action shutdown=poweroff -audiodev sdl,id=audio0 -device sb16,audiodev=audio0 -netdev user,id=net0 -device e1000,netdev=net0 -vga std -display sdl

S-AOS v3.2 brings the command-line, text-based, and graphical parts of the project together into one operating-system environment, with the GUI now serving as the main user-facing interface while the lower-level system remains accessible underneath it.

Created by Moslem Hamoudi.
Download the os at : https://github.com/moslemhamoudi6-cyber/S-AOS/releases/tag/Gui
The os is still 99.2%Nasm!


r/osdev • • 7d ago

NullixOS

8 Upvotes

Nullix is an operating system written entirely from scratch in C. Nullix can run Linux programs using a layer built into the system (in the video, I show launching Telegram in appimage format); the system can also work with Arch/Debian/Ubuntu repositories and applications. In addition, the system has its own application format, NPKG. The system already includes a Wayland compositor, basic commands, and busybox. And most importantly… The system installer weighs 21 MB, and the installed system weighs 18 MB. Nullix is a modular OS; you can remove absolutely everything, and it will continue to work. Minimum system requirements: 50 MB of hard disk space, 28 MB of RAM, and absolutely any x64 processor (yes, unfortunately, but for now the OS only works on x64). The system is in the early development stage; once I bring it to a usable state (I’ll add DE and so on), it will be released.


r/osdev • • 6d ago Mindblown

LexiSuite 2922c5c: my all-Rust local AI stack after two full source audits (92 changes); Inkling-2-Mini reads a 262k prompt 32% faster; tensor parallel arrives as an experimental toggle for Inkling-2-Mini and Qwen3.8 Flash-Next; ahead of llama.cpp and Strata on Inkling, QFN, Qwen3.8 27B and Nemotron

Thumbnail
github.com
0 Upvotes

I'm building a local AI platform from scratch in Rust: an inference engine (LexiEngine), a browser control panel (LexiPanel), an appliance OS (LexiOS) and a kernel designed around inference (LexiKernel). It boots from one USB image. It is not a wrapper around llama.cpp.

https://huggingface.co/Wa1k3r/Inkling-2-Mini-NVFP4exp-Q8-draft-LexiSuite-AIO-for-AMD-RDNA/tree/main

A new development image went out today, one day after the last one. 92 changes this time. Here is what they are.

Two audits of the whole source

The entire tree, 2.07 million lines of Rust, went through two outside audit rounds of about 100 parts each, through four lenses: security, continuity, compatibility and speed. I then checked the findings rated high by hand against the code, one by one, and fixed what held up: 93 confirmed findings are fixed in this image. Most of this release is that work.

Some of what was closed:

- Root-only routes (system update, disk install, backup recovery) accepted an internal service header in place of the root password. They no longer do.

- The restart export could read another instance's records through a second, unchecked parameter.

- Full model verification saved a changed model's fingerprint before refusing it, so a second load would have accepted it.

- A fresh fleet join code could replace an enrolled box. A replaced remote endpoint kept the API key saved for the old address.

- The engine now checks who owns its key file, and refuses an unusable key list instead of reading it as "no keys".

A more stable platform

- The installer writes the firmware fallback boot file last, verifies the bytes it then uses, and gives two disks installed from one stick different identifiers.

- Uninstall with purge refuses a folder that has a disk mounted under it.

- An answer cut off by the token limit while tools are offered now returns "length" instead of a server error.

- A model load that cannot fit no longer evicts an idle model first.

- The Panel's Secure Boot page hands out the current certificate (the bug named in the last post is fixed). Same certificate as the last image: nothing to enroll again.

Inkling-2-Mini reads long prompts faster

A new attention kernel for prompt processing. At a 262,144-token context a 261,632-token prompt now reads at 1,525.7 tok/s, up from 1,152.7, which is 32% faster. It sums in another order, so its output is not bit for bit the old kernel's: the two pick the same top token on 98.8% of 510 positions. One environment variable brings the old kernel back.

Qwen3.8 Flash-Next gets to its first token sooner

This is the 94 GB mixture-of-experts model served from one 24 GB card. First token after a 64k prompt comes 9% sooner and after a 128k prompt 10% sooner, with identical output.

Tensor parallel (experimental, off by default)

Inkling-2-Mini and Flash-Next can now split their experts across several ranks: several Vulkan devices, or several ranks on one card. It is one toggle in the Panel's New instance form and one engine option. With it off, output is bit for bit as before. With it on, output is deterministic; Flash-Next is bit for bit with two and three ranks on one card, and a 7900 XTX with an RTX 2060 as second rank works with uneven shares.

Speed, measured on this version

One Radeon RX 7900 XTX, one run each, November 30. Old version in brackets.

Inkling-2-Mini, 4-bit cache:

- 16,384-token prompt: reads at 2,471.4 tok/s (2,177.6), generates at 62.9 tok/s (61.2), 137.0 with the model's draft head (132.6)

- 261,632-token prompt: reads at 1,525.7 tok/s (1,152.7), generates at 50.1 tok/s (50.0), 64.9 with the draft head (68.1)

Inkling-2-Mini, 8-bit cache:

- 16,384-token prompt: reads at 2,436.8 tok/s (2,155.7), generates at 61.0 tok/s (61.0), 135.2 with the draft head (131.6)

- 261,632-token prompt: reads at 1,483.8 tok/s (1,140.4), generates at 43.7 tok/s (43.4)

Qwen3.8 Flash-Next at a 262,144-token context, time to first token:

- after a 16k prompt: 37.5 s (36.4)

- after a 64k prompt: 132.2 s (145.3)

- after a 128k prompt: 266.7 s (295.8)

- after a 256k prompt: 559.6 s (new row)

Qwen3.8 Flash-Next, generation:

- after a 16k prompt: 6.90 tok/s (7.64)

- after a 64k prompt: 12.73 tok/s (12.49)

- after a 128k prompt: 9.54 tok/s (9.56)

Things I am not hiding:

- Flash-Next gained nothing at a 16k prompt, and its generation there came out lower than last time (6.90 against 7.64). Both are single runs; I have not measured it enough to say whether that is real.

- Drafted generation on Inkling after the 262k prompt was 64.9 tok/s against 68.1 last time. Drafted speed follows how many drafts the prompt lets through.

- Tensor parallel is not benchmarked on a machine with two fast cards: I do not have one. On a single card it is slower than one rank, because rows cross through system memory. It is there so people with the hardware can use it and tell me.

- I did not re-run llama.cpp and Strata on this version. The comparison tables on the benchmark page are from version d484004 (November 27 to 28) and say so.

What it is not, yet

- A development build, not a production release

- Developed and measured on one card (7900 XTX, Vulkan). Other cards are less tested

- The kernel's own GPU drivers have not run on a real card in this version; the Linux boot entry is the one for daily use

- The Windows installer is on the stick but has not been run on a Windows PC; no macOS installer yet

Tested

Every test in the tree ran on this version: 17,997 tests, none failed. Both images passed nine Secure Boot checks in a VM, and the plain image passed an 18-step install to a disk.

Links

Download (960 MB USB image, boots to the Panel):

https://lexipanel.com/download/

All-in-one image with Inkling-2-Mini inside (18.7 GB, needs a 32 GB stick):

https://huggingface.co/Wa1k3r/Inkling-2-Mini-NVFP4exp-Q8-draft-LexiSuite-AIO-for-AMD-RDNA

All 92 changes, one line each:

https://github.com/W61k3r/LexiSuite-Releases/wiki/Changes-2922c5c

Benchmarks and method:

https://github.com/W61k3r/LexiSuite-Releases/wiki/Benchmarks

Happy to answer questions about the audits, tensor parallel or the engine.


r/osdev • • 6d ago

I built OpenWave, a mobile Linux OS with its own userspace

0 Upvotes

Hi everyone,

I've been working on a mobile Linux OS called OpenWave for a while, and it's finally in good enough shape to show people who care about this stuff.

First, what it isn't. It's not an Android ROM, it's not based on AOSP, and it's not a launcher. It's a Linux system with its own userspace: its own shell, app lifecycle, permission system and deployment tooling. Android apps run through Waydroid, but Android is a guest here. Native apps don't need it at all.

Right now it boots and runs in QEMU (x86-64 and ARM64). It's experimental, so please don't think of it as something you can daily drive. Booting on an actual phone is the biggest thing still missing.

The stack​

Linux kernel, C/C++, Qt and Qt Quick for the shell, Wayland, WPE WebKit for the browser, D-Bus for IPC, LLVM/Clang, and RPM for packaging. For isolation I'm layering SELinux, Landlock, bubblewrap/namespaces, seccomp and cgroups. The filesystem has its own layout too: /System, /Applications and /Data.

Userspace​

I didn't want the shell to do everything, so the system is split into small services with clear jobs:

  • appd handles the app lifecycle: registration, launching, sandbox setup, cleanup.
  • permissiond tracks what an app declares versus what the user actually allowed. It handles temporary and persistent grants, revocation, and removing records on uninstall.
  • promptd is a single broker for system prompts, so permission dialogs look and behave the same everywhere. Ocean draws them.
  • appdeploy (plus libappdeploy) installs and removes apps, validates manifests and creates app directories. Privileged operations are kept separate from the normal ones.
  • connectivityd, audiod, timed, wallpaperagentd cover networking, audio, date/time and wallpaper.
  • openwave-portal lets sandboxed apps ask the system for things like a file picker, so they don't need broad filesystem access.

Notifications and media services come next.

When you tap an app, the launcher asks appd to start it. appd checks permissions with permissiond (which may ask you through promptd), builds the sandbox, and starts the process with the shared system libraries, its own private data directory and a Wayland connection.

The security model is the part I care about most, but I'll be honest that it isn't fully wired up yet. The pieces exist, and how much of the system they actually enforce on is still in progress.

Ocean (the shell)​

Ocean is the graphical environment, written in Qt Quick and designed for touch from the start, not a desktop shell squeezed onto a phone. So far it has a launcher and app drawer, Wayland composition, app switching, gesture navigation, system dialogs and an integrated Settings app.

Native apps​

  • Ocean Browser, built on WPE WebKit (no Chromium or QtWebEngine)
  • Ocean Settings, which covers system config, connectivity, appearance, app permissions and the Android environment
  • Files

Android compatibility​

I'm using Waydroid with customized Android 13 images, but I didn't want it to feel like a separate Android desktop in a window. I've removed the status bar and replaced navigation with a single back button. Android apps launch through OpenWave's own launcher, on top of binder/binderfs and LXC.

Aurora Store, NewPipe and F-droid already run. The milestone I'm happiest with is getting the Android container running under SELinux enforcing, in its own security domain.

Build setup​

I currently have my own build infrastructure. I'm also evaluating OpenEmbedded/BitBake for reproducible builds, cross-compiling, RPM generation, incremental builds and board support. Android keeps its own separate build.

Where things stand​

Working in a VM: boot, the Qt Quick shell, launching native apps, Settings, Files, WPE-based browsing, the Android container, Android apps, and Android under SELinux enforcement.

Not done: real phone hardware, telephony, camera, power management, hardware acceleration on target devices, and proper security validation.

Next up: stabilizing the userspace, finishing the staged app lifecycle, full native app sandboxing, a package repository, deeper Android integration, notifications and media, polishing Ocean, ARM64 phone bring-up, telephony, and automated QA and security regression tests.

Help wanted​

OpenWave is independently developed so far, and I'd love feedback, testing and contributions, especially from people who know:

  • Kernel work, phone hardware enablement, ARM64 and device trees
  • Qt/QML and Wayland
  • C/C++ userspace
  • SELinux and Linux security
  • Android/AOSP/Waydroid
  • Physical phone testing
  • notificationd (centralized notification system, connected to Waydroid too)
  • Telephony and mobile networking

I'll use this thread as a dev journal, with screenshots, milestones and test builds as they come.

GitHub: https://github.com/bayar17/OpenWave

Thanks for reading. Questions and criticism are welcome.


r/osdev • • 6d ago

Is Windows NT really a hybrid kernel? (question for my term paper)

Thumbnail reddit.com
2 Upvotes

r/osdev • • 7d ago

Bunix (Bunny's Unix) Update

Thumbnail
gallery
69 Upvotes

Hello dear developers and os dev community,i want to share about new stuff i bring to my hare lang based os & kernel Bunix.So after working on sound for a long time i was able to make it work finally but sadly not fully yet.Also on kernel side we have so many new updates,such as wm now moved to userspace and its program now kust like shell or any other app. So kernel no longer treat windows manager as something special. Also after sound implememtation operating system was too lagy,i worked on it too but its not stable and probably not gone be stable for long time.Also did some optimisations on kernel side too.I also added installer which works really simple so first it checks disk /proc/disk,then size,then it show u plan before installing,asking one more time if you sure to install it to disk so if ges it writes boot sector,partition table,second stage loader, kernel.It dont touch you files,it leaves your Bunix files alone.After it finish its being on disk (or usb) then you boot it from that disk with no - kernel and if everything is right it should boot and land to ush>. As other programs it is user program to and exist in /bin/install.Lets go back to sound again so right now Bunix support sb16(Sound Blaster 16).We had a bit problem with it so sound handling fixed now and audio js mlre reliable.Also i added vol command which defines "volume".Default volume is 100 but u can change it always.Now the compiler sources and C runtime are included inside Bunix under /usr/src too.Which includes /usr/src/tcc, /usr/src/libc, /usr/src/Bunix (Small C programs i made for testing). I added new two important command reg and fsck so reg which lets you register programs so they survive from reboot and fsck which checks filesystem and can fix some damage.Now sessions got small tags and doorbells,so peograms can wait for events more clearly.Sorry for long explanation lol i just wanted share all new stuff with you guys.

I hope you all doing well and having a great day with love

Kanan Majidzada.


r/osdev • • 7d ago

MINIXEL 0.3.0 - building a small and transparent Unix-like operating system

0 Upvotes

MINIXEL is a small Unix-inspired operating system for i686, built around simplicity and transparency. The main idea is to make an operating system that you can actually understand instead of treating it as a black box. I took inspiration from the Unix philosophy, BSD, Plan 9's everything is a file approach and the KISS principle.

One of the main goals is to make things like processes, memory, hardware and kernel activity inspectable through ordinary files and simple commands. I want users to be able to understand what their system is doing without needing complicated external tools.

The current release has its own kernel, interactive shell, filesystem, TCP/IP networking, native C compiler (mcc) and a window manager that supports both tiling and floating windows. It also has dynamic resolutions up to 1920x1080, bitmap font scaling, desktop customization and a few small graphical utilities.

The entire bootable ISO is still under 300 KiB. I'm trying to keep the code readable, the system lightweight and the dependencies minimal. Adding more features isn't always the goal. Sometimes making existing things simpler and more reliable matters more.

It's still experimental, but I'm interested in how far this approach can go. Any feedback or criticism is welcome.

https://github.com/odxnoj-sh/minixel

If you find the project interesting, a star on GitHub would be appreciated! :3


r/osdev • • 7d ago

I ported bare metal th horizonOS by nintendo for a S20fe 5g

Thumbnail
gallery
58 Upvotes

So for the past 5 months I've been working on this project — I ported Horizon OS bare-metal with a custom microkernel on my Galaxy S20 FE and got Nintendo's official qlaunch running. Here's the repo if you want to check it out: hugozz26/GalaxySwitch

Thanks for looking! :)


r/osdev • • 8d ago

My Java-based OS now has a full featured X11 server with a port of OpenJDK Swing.

Post image
537 Upvotes

Small little kernel for myself. I don't really intend to publish it (it's not really gonna be anything worthwhile, other than a fun experiment).

tl;dr:

- microkernel

- yes all drivers written in java

- xhci, ehci, ochi

- pci(e) with hotplugging support, yes manual ECAM management and bus config

- custom ACPI (fuck uACPI) in Java, with my own AML parser too

- Primordial NVK-based graphics stack (can't render shit yet)

- but can atleast render virtio gpu

- 64 bit

- the JVM is most of the kernel itself (microkernel wahoo)

- ipc sucks

- custom X11 server no GLX support yet (fuck xorg)

- demand paging/swap

- versioning is mainly how many times the kernel gets updated (remember i said hotswappable kernel?) 0.2 means i hotswapped some new fancy .class via a device

- nodejs port (wip)


r/osdev • • 6d ago

New Agentic Mode in VedaOS

Post image
0 Upvotes

Hey everyone,

VedaOS now has an agentic mode for those who want to focus on their work and let an agent handle the tasks.

Desktop mode is still available as well.

Give it a try and let me know what you think or if you have any suggestions for improvement!

https://github.com/vahmoh/Veda


r/osdev • • 8d ago

Hey everyone! Here's an update on my custom operating system, ASMOS!

Thumbnail
github.com
11 Upvotes

Hey there! I wanted to share with all of you some updates on my custom OS, ASMOS. I've been working on this project for the last year or so. It started off as a simple bootloader with a small gui library, hence the name ASMOS, but I moved on to C because it's easier for me to write apps and find bugs. Anyway, since then, I've updated and improved it so much that it's starting to really compete (to some degree) with Windows 3.1 (even 95) and MacOS from that era (System 6-7). Those 2 OSes are really what inspired me in the first place. It's not trying to copy any one of them, but be it's own little thing. Some disclaimer, it's not a modern operating system, (an alternative to windows or linux) but a retro os, for vintage computers - the minimum requirements start from a 386 with only 2mb of ram!
Since the last version, v3.0.2, I'be made huge improvements to a lot of things, making it somewhat impressive (at least in my view). Here are some features I find the most interesting:

Operating System & Architecture

  • Custom operating system built from the ground up by me, assisted by AI.
  • Graphical desktop environment with a win32-like api for building apps.
  • Independent .APP applications.
  • Application isolation through separate address spaces.
  • Configurable system settings (Display, Screensavers, Sound, Devices, Printers and more)

Graphics & Display

  • Multiple graphics resolutions, from 320×200 up to 800×600.
  • 16-colour and 256-colour graphics modes.
  • VESA graphics support.
  • Linear framebuffer support.
  • Automatic graphics hardware detection.

Networking & Internet

  • TCP/IP networking.
  • DHCP configuration.
  • TCP retransmission.
  • Built-in Gopher browser (int the terminal, but gopher also works in the gui browser)
  • World View web browser (full on http browser; frogfind is the default homepage and search engine; shoutout to the creator of https://frogfind.com for creating such an incredible website for these older machines)
  • FTP downloads.
  • FTP servers accessible as filesystem drives.
  • Built-in FTP server for file sharing.

Storage & Filesystems

  • Floppy disk support (with booting directly off of the hdd to install or modify apps in the OS) - FAT12
  • Hard disk support (unfortunately, only 2 - HDA and HDB - with up to 2gb each) - FAT16 only
  • ATAPI IDE CD-ROM support; ISO 9660 and Joliet filesystem support; Automatic CD-ROM detection; CD-ROM filesystem integration.

Multimedia

  • WAV playback.
  • MIDI support.
  • Audio CD playback.
  • CD track detection and playback controls.
  • Picture viewer for BMP, JPG, JPEG, JPE, GIF files

Hardware & Input

  • Keyboard and mouse support (AT+serial and PS/2)
  • Configurable mouse settings.
  • Joystick support through the PC game port; Up to four joystick axes and four buttons.; Joystick calibration and dead-zone configuration.
  • Printer support; Parallel-port (LPT) printer support; Multiple types of printers

And more. There's so much in this OS I have integrated that I can't remember of all of them.

I did not include any photos because I'm writing from the phone and I don't have access to any screenshots, but in the GitHub repo, in the README there are some demo photos. Note: Those are from version 3.0.2. I'll update them soon. To get the latest experience of ASMOS, please clone the repo and run the OS in qemu, bochs or 86Box.

There's still a lot I'd like to add and improve, but I'm really happy with how far this project has come.

It's been a pretty interesting learning experience, especially considering how small and simple the project was when I first started.

I'd love to hear what you think! What features would you like to see / do you think are useful in a retro operating system like this?

Project repository: https://github.com/drclcomputers/ASMOS


r/osdev • • 7d ago

Looking for buddies (beginners or experienced) to learn and build Assembly / C together

Thumbnail reddit.com
1 Upvotes

r/osdev • • 7d ago

AURA os

Thumbnail
youtube.com
0 Upvotes

Made my very own computer operating system


r/osdev • • 7d ago

StarshipOS

Thumbnail gallery
0 Upvotes

r/osdev • • 7d ago

Pithos CORE: inferenza LiquidAI LFM3-1.7B e LFM2.5-350M in linguaggio assembly NASM x86-64, su Linux e come sistema operativo autonomo che si avvia da BIOS o UEFI in una console di chat Unicode. Nessuna libreria libc.

Post image
0 Upvotes

r/osdev • • 8d ago

I turned my Windows UEFI boot chain into a fake Linux dmesg/systemd log and a 24-bit 24 FPS GOP->Blt() video player in freestanding C17 (no external libs)

Post image
14 Upvotes

What started as a weekend prank — printing a convincing dmesg + colored systemd boot sequence before handing control off to Windows bootmgfw.efi — snowballed into a standalone bare-metal x86-64 UEFI video player written in freestanding C17 (-ffreestanding -nostdlib, zero external libraries, no EDK2 or gnu-efi CRT).

Before Windows starts loading ntoskrnl.exe, it plays a 34-second 320x180 clip integer-scaled to full screen (6x -> 1920x1080, 8x -> 2560x1440, 12x -> 3840x2160) at locked 24 FPS, skips instantly on any keystroke, and chainloads HackBGRT -> bootmgfw.efi seamlessly.

Engineering rabbit holes & fixes along the way

  1. Hooking the boot chain without touching NVRAM or BCD: When HackBGRT is installed with Secure Boot support, NVRAM points to \EFI\HackBGRT\loader.efi (Red Hat shimx64.efi), which verifies MOK + .sbat and launches \EFI\HackBGRT\grubx64.efi. Renaming the original grubx64.efi to grubx64.efi.bak lets our binary run first and chainload .bak via BS->LoadImage() + BS->StartImage(). Before chainloading, IsValidBackupEfi() scans the .bak file to make sure it doesn't contain our own LinuxBootSim or UEFI shim markers so an accidental overwrite falls back straight to \EFI\Microsoft\Boot\bootmgfw.efi instead of looping forever.
  2. Compiling PE32+ directly with MinGW (-nostdlib) & the ___chkstk_ms trap: UEFI x64 uses standard PE32+ (--subsystem,10) and Microsoft x64 ABI, so x86_64-w64-mingw32-gcc builds .efi binaries directly. Two catches:

    • Allocating >4 KB on the stack in MS x64 ABI emits an implicit ___chkstk_ms stack-probe call, breaking -nostdlib builds; moving large buffers to BS->AllocatePool() and passing -mno-stack-arg-probe keeps it clean.
    • Modern Shim (15.x/16.x) refuses to boot even MOK-enrolled hashes unless the PE image exports a valid .sbat metadata section (__attribute__((used, section(".sbat")))).
  3. Escaping the 80x25 ConSplitterDxe ceiling on AMI Aptio V: Querying SystemTable->ConOut modes often caps out at 80x25 or 100x31 on real motherboards because ConSplitterDxe exposes the intersection of GraphicsConsoleDxe and TerminalDxe (UART serial). Switching all physical EFI_GRAPHICS_OUTPUT_PROTOCOL handles to native resolution first and then probing LocateHandle(ByProtocol, &sto_guid, ...) for the handle that also carries GOP gives direct access to GraphicsConsoleDxe (240x56 text grid on 1080p).
  4. Packing 34s of 320x180 video into ~12 MB without H.264: Uncompressed BGR0 frames would take ~180 MB (bigger than Windows' default 100 MB FAT32 ESP), while EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL is stuck with 16 fixed EGA colors (0x00..0x0F). Instead:

    • An offline Python encoder (and a client-side browser studio) downscales with area interpolation + thresholded unsharp mask, builds a 255-color global BGR0 palette (MedianCut + K-Means), and reserves index 255 for Temporal-Delta RLE (inter-frame skip).
    • Every (color_idx, run_length) pair is packed into a single UINT16 (0xRRCCU) so GCC parses millions of tokens in a couple of seconds without blowing up AST memory on nested struct literals.
    • At runtime, FillPixels32() writes pairs of pixels via unrolled 64-bit UINT64 stores with a 7/8-brightness scanline row per scaled block, tracks dirty_y_min .. dirty_y_max, and pushes only the modified horizontal band over PCIe via GOP->Blt(EfiBltBufferToVideo).
    • Frame pacing calibrates RDTSC against BS->Stall(20000) at startup and subtracts actual decode + blit cycles from each 41,667 us frame budget.
  5. Why USB headset audio in UEFI hits a single line in EDK2: Onboard 3.5mm / HDMI HDA audio can be driven asynchronously via OpenCore's AudioDxe.efi (EFI_AUDIO_IO_PROTOCOL DMA ring buffer). USB headsets, however, require USB Audio Class isochronous transfers — and EDK2's reference MdeModulePkg/Bus/Pci/XhciDxe implements XhcIsochronousTransfer() as a literal return EFI_UNSUPPORTED;. Detaching XhciDxe via DisconnectController() to drive BAR0 MMIO yourself immediately kills ConIn->ReadKeyStroke USB keyboard polling unless you also implement your own USB HID stack and cleanly restore controller state before bootmgfw.efi.

Source & Live Browser Encoder


r/osdev • • 8d ago Bravo Mindblown

LexiSuite d484004: my all-Rust local AI stack (own kernel, OS, engine, panel) - 206 changes in two days, Inkling-2-Mini at 131 tok/s on one 7900 XTX

Thumbnail
github.com
0 Upvotes

AIO USB/VM/Drive image with Inkling 2 Mini baked here: https://huggingface.co/Wa1k3r/Inkling-2-Mini-NVFP4exp-Q8-draft-LexiSuite-AIO-for-AMD-RDNA

I'm building a local AI platform from scratch in Rust: an inference engine (LexiEngine), a browser control panel (LexiPanel), an appliance OS (LexiOS) and a kernel designed around inference (LexiKernel). It boots from one USB image. It is not a wrapper around llama.cpp, and there is no third-party code in the product.

A new development image went out today. Here is what changed since the last one two days ago, and what the work actually was.

The Panel was rebuilt, page by page (66 changes)

The old Panel worked but read like an engineering console: raw JSON on screen, fields with no labels, boxes inside boxes, internal jargon everywhere. I went through it by hand.

- One header and one navigation instead of five stacked bars

- 12 themes

- A file and folder picker on every path field, so nothing has to be typed

- Right-click menus on instances, files and table cells

- Parameters grouped in the order you set them, with a device chooser for the instance's cards

- Switch an instance between LexiEngine and llama.cpp from one page

- Hardware, Diagnostics, Power, GPU tuning and Models rewritten in plain words (temperatures in degrees, problems listed first)

- An abliteration lab where you pick models with toggles and pick the drive to write to; the original is never touched

- A layout choice: top tabs, or a side tree like a hypervisor console

LexiKernel went from one core to all of them (99 changes)

Until now my kernel ran all threads of a program on a single CPU. That was the biggest gap between it and Linux. Three rounds of work went into closing it: per-CPU timers and scheduling, threads that move between cores with their full vector state, memory handled per NUMA node, huge pages, and TLB shootdowns that a core answers even in the middle of a long system call. It now boots with every core in use and served the Panel to 8 clients at 2, 4 and 8 CPUs in a VM with no failed requests.

The kernel's own GPU drivers for AMD, NVIDIA and Intel are compiled into this build too. They have not run on a real card in this version yet. That is the next milestone, and until then GPU work under LexiKernel goes through a Linux guest. The image also boots LexiOS on Linux 7.4, which is what you want for daily use today.

LexiEngine (27 changes)

- Groundwork for splitting one model across several cards (serving across cards is not in this build)

- New draft options for Inkling 2, off by default until they are measured

- A quantizer that trains with the rounding in the loop instead of rounding afterwards

- The whole tree moved to Rust 1.100.1

Speed, measured on this version

Inkling-2-Mini (the looped mixture-of-experts model released Nov 20), one Radeon RX 7900 XTX, 4-bit KV cache, greedy, one run each, measured Nov 27-28.

After a 16,384-token prompt:

- LexiEngine: prompt 2,244 tok/s, generation 64.6 tok/s, 131.1 tok/s with the model's own draft head

- llama.cpp b12722: prompt 1,060 tok/s, generation 42.9 tok/s

- Strata 0.2.23 (8-bit cache, it refuses 4-bit on this card): prompt 2,075 tok/s, generation 53.9 tok/s

Long context on LexiEngine:

- 261,632-token prompt: 1,157 tok/s reading, then 48.7 tok/s (63.2 with the draft head)

- 523,264-token prompt: 766 tok/s reading, then 39.5 tok/s (46.8 with the draft head)

- 10 of 10 planted facts recalled at both depths

Drafted output was identical to plain output in every run.

Two notes so nobody says I hid them. The llama.cpp number is from the Nov 25 build: the build I fetched today ran this model at 7.6 tok/s on this card, which looks like a bug on their side, so I did not use it. And llama.cpp needs a 26-line loader change to open my file, because the file also carries the draft head and image tower.

What it is not, yet

- A development build, not a production release

- Developed and measured on one card (7900 XTX, Vulkan). Other cards are less tested

- The kernel's own GPU drivers have not run on a card in this version

- The Windows installer is on the stick but has not been run on a Windows PC; no macOS installer yet

- Installing to an internal disk is not in this image

- Only Inkling has been benchmarked on this exact version; my 27B numbers are from a build nine days older and are being re-run

Tested

Every test in the tree ran on this version: 17,932 tests, none failed. Both images passed their Secure Boot checks in a VM.

Links

Download (381 MB USB image, boots to the Panel):

https://lexipanel.com/download/

All-in-one image with Inkling-2-Mini inside (18.1 GB, needs a 32 GB stick):

https://huggingface.co/Wa1k3r/Inkling-2-Mini-NVFP4exp-Q8-draft-LexiSuite-AIO-for-AMD-RDNA

Every one of the 206 changes, one line each:

https://github.com/W61k3r/LexiSuite-Releases/wiki/Changes-d484004

Benchmarks and method:

https://github.com/W61k3r/LexiSuite-Releases/wiki/Benchmarks

Happy to answer questions about the kernel work or the engine.


r/osdev • • 8d ago

NuttX International Workshop 2026

Post image
6 Upvotes

r/osdev • • 9d ago

Finally I've reached a minimal FreeBSD userspace

8 Upvotes
Boot into FreeBSD Userland
SDK generates by ipc-codegen
A Server implements VfsBackend, so it can register this object to Vfs.

After a month of work, finally I've reached a minimal FreeBSD userspace.

Now it has:

  1. A userspace Mach-O loader, with dynamic link supports
  2. initd, netd, vfsd, devmgrd, usbd, acpid, etc.
  3. A multitasking system fully based on Rust Future premitives, powered by EEVDF scheduling algorithm.
  4. 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.
  5. A Mach-O linker written in Rust
  6. A filesystem based on GEFS

Except FreeBSD codes and a few assembly, everything is written in Rust.


r/osdev • • 9d ago

Keyboard interrupts firing when key is pressed but not when key is released

8 Upvotes

I am returning to my OS project after 4 months (lack of time unfortunately.. sigh) and I am trying to continue from where I left. I recently tested whether keyboard interrupts were working or not and they are partially working.

As the title says, when pressing a key an interrupt is fired and the function that is supposed to handle keyboard interrupts receives it. Even though it should, when releasing the key, no interrupt is triggered.

I have tried to find information online but I only found information regarding keyboard interrupts not being fired at all.

Link to the repo: https://codeberg.org/TheCodingKnight/32-bit-Potato/src/branch/interrupts

src/kernel/int/int_handler/int_handler.c is in charge of calling the function that will handle the interrupt that was just fired. In the case of the irq1 (keyboard interrupt), the function in charge of handling it is handle_irq1 and the code can be found in src/kernel/int/int_handler/ps2.c

Note: Please bear with the fact that the controller does not handle very well scan codes that begin with a prefix. I know I have to fix that part, but I want to make sure the press/release part of the interrupts works well before supporting scan codes with prefixes (That is to say, limit your testing to scan codes without a prefixes like letters).

Of course, if you have any questions please let me know and I will be more than glad to answer asap.


r/osdev • • 9d ago

[WIP] CakeOS an OS written in ada

Post image
38 Upvotes

I'm still working on it so it still doesnt has a repo it supports ext4, ata, fat32 and VGA I wrote the kernel completely in ada and userspace in C it doesnt supports ELF it just supports CAKE format which is different than any other formats

repo: https://github.com/sbusiedcake7945/CakeOS


r/osdev • • 8d ago

Bursztyn OS is now available for everyone to download!

0 Upvotes

Bursztyn OS is now available for everyone to download!

Today, I’ve released an ISO image of my Polish operating system on the official Bursztyn website. If you’d like to see how it performs in its current state, you can download the image and try it out in a virtual machine.

Let me know in the comments how the startup process went and what caught your attention. Your feedback will help me refine future releases.

Download link https://bursztynos.pl/

Video

https://www.youtube.com/watch?v=EiWFjkk0Nho


r/osdev • • 10d ago

🦀 Looking for 3–4 Like-Minded People to Build a Rust & Systems Programming Study Group!

13 Upvotes

I'm currently learning Rust and looking for motivated people interested in Rust, systems programming, memory management, concurrency, networking, and low-level development.

The goal is to learn together, discuss concepts, write code, build practical projects, and grow consistently.

Beginners in Rust are welcome! Let's learn and build together.