← Projects

Features

Buffered and Uncached cannot be combined.

The Rust boundary to kernel objects

a9n_abi provides the low-level Rust interface to A9N Capability Calls. It defines operation numbers and calling conventions for capability nodes, memory, processes, IPC, notifications, and interrupts. Runtimes and OS services share this description of the kernel boundary.

a9n-types defines the values being exchanged; a9n_abi defines their register placement and invocation. Separating values, calling conventions, and higher-level services makes ABI changes easier to locate and review.

Architecture-specific calling conventions

Implementations for x86_64 and AArch64 select the target’s register operations and kernel-entry mechanism. Public operation definitions remain separate from architecture-specific IPC-buffer and process-configuration code.

The crate is no_std and can be used by small runtimes such as Nun. Higher-level APIs own object lifetimes and service-wide authority policy; this layer concentrates on representing the kernel ABI.

Memory attributes for device mappings

Address-space mappings combine READ, WRITE, and EXECUTE with NORMAL, BUFFERED, or UNCACHED attributes. Ordinary RAM, framebuffer writes, and MMIO registers can use the same attribute type with appropriate memory behavior.

Omitting the memory type selects Normal and preserves the existing access-permission bit layout. BUFFERED and UNCACHED are mutually exclusive. Keeping permissions separate from the memory-type field extends device mapping behavior without changing the basic call format.

Technical details

Type
no_std Rust crate
Features
x86_64 (default), aarch64
Dependencies
a9n-types 0.4.0, bitflags 2
License
MIT
Source version
0.8.0
Source reference
main · 4c14adf ↗

Related projects