Platform Tools Release 34.0.3 (9979309)
Snap for 9979206 from 077d73ad6896668a5b11331570fc0761565f7e9c to sdk-release

Change-Id: I7cdf7d4eebcc51aec08d376d739e0995c72d83e6
tree: 1bc2c7528414de3900e3b868e851c80723feb7cb
  1. .github/
  2. patches/
  3. src/
  4. .cargo_vcs_info.json
  5. .gitignore
  6. Android.bp
  7. AUTHORS
  8. Cargo.toml
  9. Cargo.toml.orig
  10. cargo2android.json
  11. CHANGELOG.md
  12. CONTRIBUTING.md
  13. LICENSE
  14. LICENSE-APACHE
  15. LICENSE-MIT
  16. METADATA
  17. MODULE_LICENSE_APACHE2
  18. OWNERS
  19. README.md
  20. rust-toolchain.toml
README.md

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.

License

Licensed under either of

at your option.

Contributing

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