This is an automated email from the ASF dual-hosted git repository.

yuanz pushed a commit to branch no-std
in repository 
https://gitbox.apache.org/repos/asf/incubator-teaclave-trustzone-sdk.git

commit b090c0f8a1b18eb31db1082f862feed05cd5ea94
Author: Sumit Garg <[email protected]>
AuthorDate: Wed Dec 27 05:40:47 2023 +0000

    optee-utee: Use libc_alloc as global heap allocator
    
    Signed-off-by: Sumit Garg <[email protected]>
---
 optee-utee/src/lib.rs | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/optee-utee/src/lib.rs b/optee-utee/src/lib.rs
index 821c93f..953d604 100644
--- a/optee-utee/src/lib.rs
+++ b/optee-utee/src/lib.rs
@@ -22,6 +22,11 @@
 #[macro_use]
 extern crate alloc;
 
+use libc_alloc::LibcAlloc;
+
+#[global_allocator]
+static ALLOCATOR: LibcAlloc = LibcAlloc;
+
 pub use self::error::{Error, ErrorKind, Result};
 pub use self::object::*;
 pub use self::crypto_op::*;


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to