1/*
2 * Copyright 2017, Data61
3 * Commonwealth Scientific and Industrial Research Organisation (CSIRO)
4 * ABN 41 687 119 230.
5 *
6 * This software may be distributed and modified according to the terms of
7 * the BSD 2-Clause license. Note that NO WARRANTY is provided.
8 * See "LICENSE_BSD2.txt" for details.
9 *
10 * @TAG(DATA61_BSD)
11 */
12
13#ifndef __LIBSEL4_SEL4_SEL4_ARCH_TYPES_H_
14#define __LIBSEL4_SEL4_SEL4_ARCH_TYPES_H_
15
16#include <autoconf.h>
17#include <sel4/simple_types.h>
18
19typedef seL4_Uint64 seL4_Word;
20typedef seL4_Word seL4_NodeId;
21typedef seL4_Word seL4_PAddr;
22typedef seL4_Word seL4_Domain;
23
24typedef seL4_Word seL4_CPtr;
25
26typedef seL4_CPtr seL4_X64_PML4;
27
28/* User context as used by seL4_TCB_ReadRegisters / seL4_TCB_WriteRegisters */
29
30typedef struct seL4_UserContext_ {
31    seL4_Word rip, rsp, rflags, rax, rbx, rcx, rdx, rsi, rdi, rbp,
32              r8, r9, r10, r11, r12, r13, r14, r15;
33    seL4_Word tls_base;
34} seL4_UserContext;
35
36#endif /* __LIBSEL4_SEL4_SEL4_ARCH_TYPES_H_ */
37