diff options
| -rw-r--r-- | tools/testing/selftests/sgx/test_encl.c | 8 | 
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/testing/selftests/sgx/test_encl.c b/tools/testing/selftests/sgx/test_encl.c index c0d6397295e3..ae791df3e5a5 100644 --- a/tools/testing/selftests/sgx/test_encl.c +++ b/tools/testing/selftests/sgx/test_encl.c @@ -24,10 +24,11 @@ static void do_encl_emodpe(void *_op)  	secinfo.flags = op->flags;  	asm volatile(".byte 0x0f, 0x01, 0xd7" -				: +				: /* no outputs */  				: "a" (EMODPE),  				  "b" (&secinfo), -				  "c" (op->epc_addr)); +				  "c" (op->epc_addr) +				: "memory" /* read from secinfo pointer */);  }  static void do_encl_eaccept(void *_op) @@ -42,7 +43,8 @@ static void do_encl_eaccept(void *_op)  				: "=a" (rax)  				: "a" (EACCEPT),  				  "b" (&secinfo), -				  "c" (op->epc_addr)); +				  "c" (op->epc_addr) +				: "memory" /* read from secinfo pointer */);  	op->ret = rax;  }  | 
