1 // © 2021 Qualcomm Innovation Center, Inc. All rights reserved. 2 // 3 // SPDX-License-Identifier: BSD-3-Clause 4 5 #include <hyptypes.h> 6 7 #include <hypconstants.h> 8 9 #include <atomic.h> 10 #include <compiler.h> 11 #include <log.h> 12 #include <trace.h> 13 14 #include <events/tests.h> 15 16 #include "event_handlers.h" 17 18 extern const char hypervisor_version[]; 19 static const char *msg_ptr; 20 21 void test_print_hyp_version_init(void)22test_print_hyp_version_init(void) 23 { 24 msg_ptr = hypervisor_version; 25 return; 26 } 27 28 error_t test_print_hyp_version(tests_run_id_t test_id)29test_print_hyp_version(tests_run_id_t test_id) 30 31 { 32 if (test_id == TESTS_RUN_ID_SMC_0) { 33 LOG(USER, TEST, "{:s}", (register_t)msg_ptr); 34 return OK; 35 } else { 36 return ERROR_UNIMPLEMENTED; 37 } 38 } 39