trustzone: add rust 1.99.0 ported std and libc for std TAs - #14
Merged
Conversation
Signed-off-by: ivila <ivila@apache.org>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds the OP-TEE adaptation patches for Rust 1.99.0 and libc 0.2.189, enabling Rust standard library support for OP-TEE Trusted Applications.
Compared with the previous port:
library/std/src/thread/lifecycle.rsno longer needs to be patched. The AArch64 OP-TEE target specification has been fixed to setsinglethread: true, allowing the standard library toselect its single-threaded implementation. As a result, the multi-threaded lifecycle code is not compiled for this target.
libc/src/optee/mod.rshave been reordered to follow the order of the corresponding OP-TEE header files. This is an organizational change and does notalter their signatures or behavior.
library/std/src/sys/alloc/optee.rshas been adapted to the latest Rust standard library allocator interface. Instead of implementingGlobalAllocforSystem, the OP-TEE backend nowprovides the allocator functions expected by
sys::allocand usesrealloc_fallbackwhen the requested alignment cannot be handled directly bylibc::realloc.