We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6a731e commit 09cfb24Copy full SHA for 09cfb24
library/std/src/sys/sgx/ext/arch.rs
@@ -32,9 +32,12 @@ pub fn egetkey(request: &Align512<[u8; 512]>) -> Result<Align16<[u8; 16]>, u32>
32
let error;
33
34
asm!(
35
+ // rbx is reserved by LLVM
36
+ "xchg {}, rbx",
37
"enclu",
38
+ "mov rbx, {}",
39
+ inout(reg) request => _,
40
inlateout("eax") ENCLU_EGETKEY => error,
- in("rbx") request,
41
in("rcx") out.as_mut_ptr(),
42
options(nostack),
43
);
@@ -60,9 +63,12 @@ pub fn ereport(
60
63
let mut report = MaybeUninit::uninit();
61
64
62
65
66
67
68
69
70
+ inout(reg) targetinfo => _,
71
in("eax") ENCLU_EREPORT,
- in("rbx") targetinfo,
72
in("rcx") reportdata,
73
in("rdx") report.as_mut_ptr(),
74
options(preserves_flags, nostack),
0 commit comments