Skip to main content

Crate ax_runtime

Crate ax_runtime 

Source
Expand description

Runtime library of ArceOS.

Any application uses ArceOS should link this library. It does some initialization work before entering the application’s main function.

§Cargo Features

  • paging: Enable page table manipulation support.
  • smp: Enable SMP (symmetric multiprocessing) support.
  • fs: Enable filesystem support.
  • net: Enable networking support.
  • display: Enable graphics support.

Interrupt handling and task scheduling are mandatory runtime capabilities.

Re-exports§

pub use ax_task as task;
pub use ax_hal as hal;

Modules§

console
Sleepable task-context access to the runtime-owned physical console.
diagnostics
Runtime observations for scheduler and execution-context diagnostics.
emergency_console
Synchronous emergency text output.
irq
serial
UART runtime ownership and task-context data service.
thread
ArceOS ownership and trait-FFI glue for the OS-independent task system.

Enums§

RuntimeError
Errors owned by the ArceOS runtime layer.

Constants§

CPU_CAPACITY
A uniprocessor runtime represents only CPU zero.

Functions§

rust_main
The main entry point of the ArceOS runtime.
terminate
Drains task-console output before shutting down the whole system.

Type Aliases§

RuntimeResult
A result returned by an ArceOS runtime-owned operation.