⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

Module embedded

Module embedded 

Source
Expand description

Embedded minimal ELF binaries for user-space init and shell

This module provides pre-built minimal ELF64 binaries that are embedded directly in the kernel image. During bootstrap, these binaries are written to the RamFS so that the ELF loader can find them at standard paths (/sbin/init, /bin/vsh).

Machine code is provided for all three architectures:

  • x86_64: SYSCALL-based (ABI: rax=sysno, rdi/rsi/rdx=args)
  • AArch64: SVC-based (ABI: x8=sysno, x0/x1/x2=args)
  • RISC-V: ECALL-based (ABI: a7=sysno, a0/a1/a2=args)

Functions§

init_code_bytes
Return the raw machine code for the init process.
populate_initramfs
Populate the RamFS with embedded init and shell binaries.