Crate axcpu

Source
Expand description

§axcpu

Crates.io Docs.rs CI

This crate provides privileged instruction and structure abstractions for various CPU architectures. It is designed to implement the hardware abstraction layer of an operating system kernel.

§Supported Architectures

  • x86_64
  • AArch64
  • RISC-V
  • LoongArch64

Modules§

asm
Wrapper functions for assembly instructions.
init
Helper functions to initialize the CPU states on systems bootstrapping.
trap
Trap handling.
uspaceuspace
Structures and functions for user space.

Structs§

FpState
FP & SIMD registers.
TaskContext
Saved hardware states of a task.
TrapFrame
Saved registers when a trap (exception) occurs.