Pip
Architecture-dependent parts of Pip: MAL, IAL and boot
context.h
Go to the documentation of this file.
1 /*******************************************************************************/
2 /* © Université de Lille, The Pip Development Team (2015-2021) */
3 /* */
4 /* This software is a computer program whose purpose is to run a minimal, */
5 /* hypervisor relying on proven properties such as memory isolation. */
6 /* */
7 /* This software is governed by the CeCILL license under French law and */
8 /* abiding by the rules of distribution of free software. You can use, */
9 /* modify and/ or redistribute the software under the terms of the CeCILL */
10 /* license as circulated by CEA, CNRS and INRIA at the following URL */
11 /* "http://www.cecill.info". */
12 /* */
13 /* As a counterpart to the access to the source code and rights to copy, */
14 /* modify and redistribute granted by the license, users are provided only */
15 /* with a limited warranty and the software's author, the holder of the */
16 /* economic rights, and the successive licensors have only limited */
17 /* liability. */
18 /* */
19 /* In this respect, the user's attention is drawn to the risks associated */
20 /* with loading, using, modifying and/or developing or reproducing the */
21 /* software by the user in light of its specific status of free software, */
22 /* that may mean that it is complicated to manipulate, and that also */
23 /* therefore means that it is reserved for developers and experienced */
24 /* professionals having in-depth computer knowledge. Users are therefore */
25 /* encouraged to load and test the software's suitability as regards their */
26 /* requirements in conditions enabling the security of their systems and/or */
27 /* data to be ensured and, more generally, to use and operate it in the */
28 /* same conditions as regards security. */
29 /* */
30 /* The fact that you are presently reading this means that you have had */
31 /* knowledge of the CeCILL license and that you accept its terms. */
32 /*******************************************************************************/
33 
34 #ifndef DEF_CONTEXT_H_
35 #define DEF_CONTEXT_H_
36 
37 #include <stdint.h>
38 
39 typedef enum arm_ctxreg_e {
56 } arm_ctxreg_t;
57 
62 typedef struct gate_ctx_s
63 {
64  uint32_t spsr;
65  uint32_t reg[16];
67 
72 typedef struct user_ctx_s
73 {
74  uint32_t spsr;
75  uint32_t reg[16];
76  uint32_t pipflags;
77  uint32_t valid;
78 } user_ctx_t;
79 
80 #endif
User saved context.
Definition: context.h:72
Definition: context.h:40
Definition: context.h:41
Definition: context.h:49
Definition: context.h:62
uint32_t pipflags
Definition: context.h:76
uint32_t valid
Definition: context.h:77
Definition: context.h:51
Definition: context.h:46
Definition: context.h:50
struct user_ctx_s user_ctx_t
Definition: context.h:48
Definition: context.h:42
struct gate_ctx_s arm_ctx_t
struct gate_ctx_s gate_ctx_t
Definition: context.h:44
Definition: context.h:45
Definition: context.h:47
uint32_t spsr
Definition: context.h:74
uint32_t spsr
Definition: context.h:64
Definition: context.h:52
Definition: context.h:43
uint32_t reg[16]
Definition: context.h:65
arm_ctxreg_e
Definition: context.h:39
enum arm_ctxreg_e arm_ctxreg_t
Definition: context.h:55
Definition: context.h:53
Definition: context.h:54