← Projects

Features

Connecting Rust to the entry ABI

Nun provides startup support for Rust programs on A9N. Its entry! macro connects an architecture-specific entry point to a Rust function and passes through the kernel’s InitInfo. This separates entry-register conventions from the OS’s own initialization logic.

InitInfo describes the kernel version, architecture, platform, core count, IPC buffer, and initial memory resources. The initial OS process receives both its execution environment and resource inventory through a shared Rust type.

IPC initialization and diagnostics

Before invoking the user entry function, Nun configures the initial IPC buffer in thread-local storage. Centralizing this preparation lets the program use the IPC interface without repeating entry-time buffer setup. A failed initialization is reported as a panic.

The print! and println! macros use A9N debug calls, providing diagnostics before a normal terminal service exists. The panic handler uses the same output path, keeping early startup failures observable through a small runtime.

A small runtime with a shared ABI

Nun runs without the Rust standard library and re-exports kernel operations and common types through a9n_abi. Target definitions and linker scripts cover x86_64 and AArch64, keeping startup and CPU-specific details separate from OS functionality.

Memory allocation, drivers, filesystems, and service composition belong to the OS built above Nun. Nanami uses this foundation while implementing its process management and application runtime as separate layers.

Technical details

Language
Rust
Environment
no_std / no_main
Architectures
x86_64, AArch64
Direct dependency
a9n_abi 0.8.0
License
MIT
Source version
0.2.1
Source reference
main · a10150c ↗

Related projects