Skip to main content

Crate axcpu

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
  • ARMv7-A
  • RISC-V
  • LoongArch64

Modules§

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

Structs§

FpuState
Floating-point registers of LoongArch64
GeneralRegisters
General registers of Loongarch64.
TaskContext
Saved hardware states of a task.
TrapFrame
Saved registers when a trap (interrupt or exception) occurs.