microsoft/mu_feature_ffa

Public

mirrored fromhttps://github.com/microsoft/mu_feature_ffaAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
fix_upload_2

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

FfaFeaturePkg/SecurePartitions/MsSecurePartitionRust/src/main.rs

32lines · modecode

1// This project is dual-licensed under Apache 2.0 and MIT terms.
2// See LICENSE-APACHE and LICENSE-MIT for details.
3
4#![cfg_attr(target_os = "none", no_std)]
5#![cfg_attr(target_os = "none", no_main)]
6#![deny(clippy::undocumented_unsafe_blocks)]
7#![deny(unsafe_op_in_unsafe_fn)]
8
9#[cfg(target_os = "none")]
10mod baremetal;
11
12#[cfg(not(target_os = "none"))]
13fn main() {
14 println!("qemu-sp stub");
15}
16
17#[cfg(target_os = "none")]
18#[embassy_executor::main(executor = "embassy_aarch64_haf::Executor")]
19async fn embassy_main(_spawner: embassy_executor::Spawner) {
20 use ec_service_lib::service_list;
21 use test_service_lib::test_svc::Test;
22
23 log::info!("QEMU Secure Partition - build time: {}", env!("BUILD_TIME"));
24 service_list![
25 ec_service_lib::services::FwMgmt::new(),
26 ec_service_lib::services::Notify::new(),
27 Test::new(),
28 ]
29 .run_message_loop(async |_| Ok(()))
30 .await
31 .expect("Error in run_message_loop");
32}
33