Skip to content
Proyectos

Acerca de

x86-64 Unix-like kernel

Sistemas e infraestructura

Cómo se miden estas cifras

What you can do

  • MMU (4-level paging)
  • PS/2 keyboard & mouse
  • QEMU I/O Port 0xE9 logging
  • SCE (System Call Extension)

Crecimiento de estrellas medido

in 24h
+1
in 7 days
+1
in 15 days
+3
in 1 month
+4

Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.

README.md

Original

SalernOS Kernel

x86-64 Unix-like kernel

Contributors Forks Stargazers Issues MIT License

Features

As of kernel release 0.2.5, it is possible to run a variety of programs. Ports for some well-known applications are available in the SalernOS repository (see credits below). Included are ports for the likes of Xorg, Vim, GNU Coreutils, GCC, GNU Binutils, mlibc, xterm, Python, Doom, Quake, neofetch, xfiles, JWM, IceWM, and more.

The kernel itself roughly includes the following:

  • Platform-specific
    • x86-64
      • GDT
      • IDT
      • PIT
      • LAPIC
      • LAPIC Timer
      • IOAPIC
      • MMU (4-level paging)
      • Invariant TSC
      • PS/2 keyboard & mouse
      • QEMU I/O Port 0xE9 logging
      • SCE (System Call Extension)
  • Common code
    • Memory management
      • PMM
      • Slab allocator
      • VMM (currently being reworrked in a separate tree)
      • Copy-on-write
      • Buffer cache
    • System management
      • System call interface
      • Callout (Timer multiplexer)
      • ELF loading
      • Interrupt management
      • Kernel panic
      • SMP preemptive scheduler
    • Process management
      • Processes
      • Threads (with userspace API)
      • Job control
    • I/O software interfaces
      • TTY
      • PTY
      • KTTY multiplexing (with userspace API)
      • Kernel log
    • Device abstractions
      • Terminal
      • Keyboard
      • Mouse
      • Block device
    • Pseudo-devices
      • Linux-compatible framebuffer device
      • /dev/null
      • /dev/profile
      • /dev/zero
      • /dev/random
    • Inter-process communication and synchronization
      • Pipes
      • UNIX domain sockets
      • Signals
      • Futex
      • System V shared memory (implemented in userspace on top of tmpfs)
    • File system
      • VFS
      • initrd
      • iovec (optional)
      • pipefs
      • sockfs
      • tmpfs
      • devfs
      • ext2
    • Kernel library and data structures
      • Hashmap
      • Radix tree (XArray)
      • Ring buffer
      • Spinlock
      • Mutex
      • RW lock
      • Work queue
      • Iovec iterator
      • libc-like functions
  • Compiletime modules (a.k.a., "options", see src/opt)

History and goals

Development on this Kernel started on December 12, 2021. Since then, the source code has gone through multiple rewrites and has experienced long periods of stagnation. Development resumed in late 2024 after almost two years of inactivity.

The project's original goal was to learn the basics of operating systems by trying to implement one. Throughout the years, and going into 2025 especially, the kernel acumulated features beyond the original scope, leading to its current state. This allowed the project to aim for greater POSIX compliance, allowing more third-party programs to run.

The work done in 2026 has largely focused on fixing technical debt acumulated through 2024 and 2025, improving both performance and correctness. These changes prepare the kernel for EoL while a new from-scratch design is in the making.

How to build

Requirements

  • GNU C compatible compiler (like GCC - preferably <arch>-salernos-mlibc-gcc)
  • Binutils
  • NASM (for x86-64)

Procedure

Simply run the following command and hit enter:

make -j8

[!NOTE] This will only build the kernel executable for the target architecture (bin/vmsalernos). To build the full OS, use the tools in the SalernOS repository.

License

The SalernOS Kernel is distributed under the GNU General Public License (GPL) v3.0. More details in the LICENSE file.

However, some external componets are included in this repository are distributed under different licenses. License files for these components can be found in the licenses directory and can often be found at the top of related source files.

Inspiration, acknowledgements, and disclosures

[!WARNING] With no offense to the original authors, I would strongly discourage using some of the earlier sources listed here as authoritative foundations for building operating systems. I would also advice people looking for inspiration to pay careful attention to this kernel's own code, as there's a sizable set of known issues that prompted the current out-of-tree rewrite.

  • The initial learning material (used in 2021 for versions 0.0.1 - 0.0.3) came from CodePulses'es YouTube videos
  • The original architecture and structure for many componets written in 2022 (versions 0.0.4 - 0.0.6) came from AbsurdPoncho's YouTube videos, which have since been delisted. The source code written during the series can still be found here
  • Changes made in 2023 (version 0.1.0) were inspired by the Lyre and qword operating systems
  • The current architecture makes use of Limine and flanterm by mintsuki, Kamila Szewczyk, and contributors
  • Changes made in late 2024 and early 2025 (versions 0.2.0 - 0.2.4) were parly inspired by the Astral operating system by Mathewnd and other works
  • Changes made since late 2025 are original and part of an attempt to clean up the code before moving to a new foundation
  • Some ports in the SalernOS repository are derived or redistributed from ones authored and published by Gloire and Astral
  • Some more recent ports have been written by generative tools

The use of generative AI has been limited. Commits prior to 2024 have no connections to LLMs, and only some commits made after August 2026 include LLM-generated code. In the context of the kernel specifically , these tools have been used to help refactor existing code, find issues, fix bugs, and generally hasten development during the above-mentioned 2026 fix rush. The project remains largely human-written and human-designed, and commit messages explicitly state when LLMs are used for design tasks.

Explorar proyectos relacionados

Cargando…