aboutsummaryrefslogtreecommitdiff
path: root/aarch64/common/svc.h
blob: 8f31ee6d0045550f038e32437448e74e725609b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef _SVC_H
#define _SVC_H

#include "interop.h"

#define SVC_RETURN_FROM_SECURE_USR 0
#define SVC_DISPATCH_MONITOR 1
#define SVC_DISPATCH_SECURE_USR 2
#define SVC_DISPATCH_SECURE_SVC 3
#define SVC_DISPATCH_NONSECURE_SVC 4
#define SVC_GET_SECURE_STATE 5
#define SVC_EXIT 6
#define SVC_ALLOC 7
#define SVC_MAP 8
#define SVC_YIELD 9

#ifndef __ASSEMBLY__
typedef struct {
    int op;
    union {
        op_alloc_mem_t alloc;
        op_map_mem_t map;
    };
} svc_op_desc_t;
#endif

#endif