Bug: 230395334

Clone this repo:
  1. 72bfb91 Use new no-std cargo2android flag rather than patch. by Andrew Walbran · 2 weeks ago main master
  2. 077d73a Upgrade psci to 0.1.3 by Andrew Walbran · 6 weeks ago
  3. a312d59 Update to version 0.1.1. am: 22f4f77926 by Andrew Walbran · 8 months ago main-16k-with-phones android-u-beta-1-gpl
  4. 22f4f77 Update to version 0.1.1. by Andrew Walbran · 8 months ago
  5. 59374a3 [LSC] Add LOCAL_LICENSE_KINDS to external/rust/crates/psci am: bec09bcab2 am: dabcf159e3 am: ef98d36b51 am: 3a3e9a4818 by Bob Badour · 1 year, 1 month 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 PSCI and other SMCCC calls may be made via either HVC or SMC. You can choose which one to use by building this crate with the corresponding feature (i.e. hvc or smc). By default hvc is enabled. If neither feature is enabled then the functions to make calls will not be available, but the constants are still provided.

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

This is not an officially supported Google product.


Licensed under either of

at your option.


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