commit | 574b1f1ab98b306e713befe897dc51f714544d52 | [log] [tgz] |
---|---|---|
author | Imre Kis <imre.kis@arm.com> | Mon Mar 31 14:37:31 2025 +0200 |
committer | Imre Kis <imre.kis@arm.com> | Mon Mar 31 15:30:39 2025 +0200 |
tree | 5a3372b1f5b41385e6732efc98fc969a6150fdc3 | |
parent | 1828ef86a184375d3f9e6cf72eca0f9c2d9e186f [diff] |
Implement conversions between ErrorCode and u32/u64 Implement TryFrom and From traits for ErrorCode to support conversions between ErrorCode and u32/u64 types. According to the PSCI specification, error code values are represented as 32-bit or 64-bit signed integers. These new trait implementations allow ErrorCode to be converted to and from u32/u64, making it possible to use the values directly in registers. Signed-off-by: Imre Kis <imre.kis@arm.com> Change-Id: If4b4151760d8d7600d65d1c3d83d317547223457
This crate aims to offer functions and user-friendly types for parsing and constructing arguments of Arm Power State Coordination Interface (PSCI) calls. This functionality can be beneficial for both firmware and OS components.
However, doing the actual SMC
/HVC
/ERET
calls, or implementing power management logic is beyond the scope of this crate.
The project is MIT and Apache-2.0 dual licensed, see LICENSE-APACHE
and LICENSE-MIT
.
arm-psci is a trustedfirmware.org maintained project. All contributions are ultimately merged by the maintainers listed below.
Please follow the directions of the Trusted Firmware Processes.
Contributions are handled through review.trustedfirmware.org.
Please follow the directions of the Trusted Firmware Security Center.
Copyright 2025 Arm Limited and/or its affiliates open-source-office@arm.com