1 /*
2  * SPDX-License-Identifier: BSD-3-Clause
3  * SPDX-FileCopyrightText: Copyright TF-RMM Contributors.
4  */
5 
6 #ifndef RUN_H
7 #define RUN_H
8 
9 struct rec;
10 struct simd_context;
11 
12 /*
13  * Function to enter Realm with `regs` pointing to GP Regs to be
14  * restored/saved when entering/exiting the Realm. This function
15  * returns with the Realm exception code which is populated by
16  * Realm_exit() on aarch64.
17  */
18 int run_realm(unsigned long *regs);
19 
20 /* Initialize the NS world SIMD context for all CPUs. */
21 void init_all_cpus_ns_simd_context(void);
22 
23 /* Returns current CPU's NS world SIMD context */
24 struct simd_context *get_cpu_ns_simd_context(void);
25 
26 #endif /* RUN_H */
27