@@ -356,7 +356,7 @@ int main(int argc, char *argv[], char *envp[])
printf("Input: 0x%lx\n", MAGIC);
- sgx_call_vdso((void *)&MAGIC, &result, 0, NULL, NULL, NULL,
+ sgx_call_vdso((void *)&MAGIC, &result, NULL, NULL, NULL, NULL,
(void *)secs.base, &exception, NULL);
if (result != MAGIC) {
fprintf(stderr, "0x%lx != 0x%lx\n", result, MAGIC);
@@ -8,7 +8,8 @@
void sgx_call_eenter(void *rdi, void *rsi, void *entry);
-int sgx_call_vdso(void *rdi, void *rsi, long rdx, void *rcx, void *r8, void *r9,
+
+int sgx_call_vdso(void *rdi, void *rsi, void *rdx, void *rcx, void *r8, void *r9,
void *tcs, struct sgx_enclave_exception *ei, void *cb);
#endif /* SGX_CALL_H */
Convert the @rdx parameter for sgx_vdso_call() from 'long' to 'void *' to make it consistent with all other register params. Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com> --- tools/testing/selftests/x86/sgx/main.c | 2 +- tools/testing/selftests/x86/sgx/sgx_call.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-)