riscv-non-isa / riscv-ap-tee

This repo holds the work area and revisions of the non-ISA specification created by the RISC-V AP-TEE TG. This specification defines the programming interfaces (ABI) to support the Confidential VM Extension (CoVE) confidential computing architecture for RISC-V application-processor platforms.
https://jira.riscv.org/browse/RVG-76
Creative Commons Attribution 4.0 International
49 stars 19 forks source link

Convert `unsigned long` to `uint*_t` #91

Open steven-bellock opened 2 weeks ago

steven-bellock commented 2 weeks ago

The size of long integers are different on RV32 (4 bytes) versus RV64 (8 bytes). At least for tsm_info.tsm_capabilities and tsm_info.tvm_max_vcpus these should be fixed-width integers, as their maximum size does not depend on the RV* architecture. There may be other examples of this.