kernel::utilities

Module arch_helpers

Source
Expand description

Helper functions and types shared between multiple arch crates.

This function contains functions and types that do not have to be in the core kernel and are architecture-specific, but are shared by two or more arch crates. While these could also live in a dedicated crate, we use the kernel crate as all arch crates already depend on it.

Enums§

  • A (kernel private) set of variants that matches SyscallReturn. These must be mapped into ABI variants.
  • Enumeration of the system call return type variant identifiers described in TRD104.
  • Enumeration of the system call return type variant identifiers described in the (not yet existant) TRD105.

Traits§

  • Trait alias for syscall variants

Functions§

  • Encode the system call return value into 4 registers, following the encoding specified in TRD104. Architectures which do not follow TRD104 are free to define their own encoding.
  • An extension of TRD104 that works for 32-bit and 64-bit platforms, and can remap variants.