-
Notifications
You must be signed in to change notification settings - Fork 0
/
syscall.h
34 lines (28 loc) · 1.11 KB
/
syscall.h
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
28
29
30
31
32
33
34
//******************************************************************************
// Copyright (c) 2018, The Regents of the University of California (Regents).
// All Rights Reserved. See LICENSE for license details.
//------------------------------------------------------------------------------
#ifndef __SYSCALL_H__
#define __SYSCALL_H__
#include "printf.h"
#include "regs.h"
#include "edge_syscall.h"
#include "vm.h"
#define RUNTIME_SYSCALL_UNKNOWN 1000
#define RUNTIME_SYSCALL_OCALL 1001
#define RUNTIME_SYSCALL_SHAREDCOPY 1002
#define RUNTIME_SYSCALL_ATTEST_ENCLAVE 1003
#define RUNTIME_SYSCALL_GET_SEALING_KEY 1004
#define RUNTIME_SYSCALL_EXIT 1101
void handle_syscall(struct encl_ctx* ctx);
void init_edge_internals(void);
uintptr_t dispatch_edgecall_syscall(struct edge_syscall* syscall_data_ptr,
size_t data_len);
// Define this to enable printing of a large amount of syscall information
//#define INTERNAL_STRACE 1
#ifdef INTERNAL_STRACE
#define print_strace printf
#else
#define print_strace(...)
#endif
#endif /* syscall.h */