Bug: 284386483

Clone this repo:
  1. e2a71c3 Migrate to cargo_embargo. am: e24e2e4e2e am: 7d368e0e9d am: 6ac1b5b4bc by Andrew Walbran · 6 months ago main master
  2. 1e59aae Migrate to cargo_embargo. am: e24e2e4e2e am: bf01d4b1fe am: e9b0384d9f by Andrew Walbran · 6 months ago
  3. 6ac1b5b Migrate to cargo_embargo. am: e24e2e4e2e am: 7d368e0e9d by Andrew Walbran · 6 months ago
  4. e9b0384 Migrate to cargo_embargo. am: e24e2e4e2e am: bf01d4b1fe by Andrew Walbran · 6 months ago
  5. bf01d4b Migrate to cargo_embargo. am: e24e2e4e2e by Andrew Walbran · 6 months ago

SMCCC and PSCI functions for bare-metal Rust on aarch64

crates.io page docs.rs page

This crate provides support for the Arm SMC Calling Convention version 1.4, including standard Arm Architecture Calls constants, and version 1.1 of the Arm Power State Coordination Interface (PSCI). It includes constants, functions to make the calls (on aarch64 targets), and error types.

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.

This is not an officially supported Google product.

License

Licensed under either of

at your option.

Contributing

If you want to contribute to the project, see details of how we accept contributions.