1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright(c) 2016-20 Intel Corporation.
24 unsigned int nr_segments;
25 struct encl_segment *segment_tbl;
27 struct sgx_sigstruct sigstruct;
30 void encl_delete(struct encl *ctx);
31 bool encl_load(const char *path, struct encl *encl);
32 bool encl_measure(struct encl *encl);
33 bool encl_build(struct encl *encl);
35 int sgx_call_vdso(void *rdi, void *rsi, long rdx, u32 function, void *r8, void *r9,
36 struct sgx_enclave_run *run);