Crate smccc

Source
Expand description

Functions for version 1.4 of the Arm SMC Calling Convention and version 1.1 of the Arm Power State Coordination Interface (PSCI) version 1.1, and relevant constants.

Note that the PSCI and SMCCC arch calls may be made via either HVC or SMC. You can choose which one to use by passing either Hvc or Smc as a type parameter to the relevant function.

This crate currently only supports aarch64 and the SMC64 versions of the PSCI calls, in the cases that both SMC32 and SMC64 versions exist.

Modules§

arch
Standard Arm architecture calls.
error
Utility functions for error handling.
psci
Constants for version 1.1 of the Arm Power State Coordination Interface (PSCI) version 1.1, and functions to call them.

Structs§

Hvc
Use a Hypervisor Call (HVC).
Smc
Use a Secure Moniter Call (SMC).

Traits§

Call
Functions to make an HVC or SMC call.

Functions§

hvc32
Makes an HVC32 call to the hypervisor, following the SMC Calling Convention version 1.4.
hvc64
Makes an HVC64 call to the hypervisor, following the SMC Calling Convention version 1.4.
smc32
Makes an SMC32 call to the firmware, following the SMC Calling Convention version 1.4.
smc64
Makes an SMC64 call to the firmware, following the SMC Calling Convention version 1.4.