diff options
| author | Amanieu d'Antras <amanieu@gmail.com> | 2021-04-30 18:30:30 +0100 |
|---|---|---|
| committer | Amanieu d'Antras <amanieu@gmail.com> | 2021-05-01 13:25:56 +0100 |
| commit | ea310d9253f02649b450b822e18ed5c22868acce (patch) | |
| tree | 4e9d2ea2f1e9edc3ec590fc2b541e6d587a95046 /library/std/src/sys/sgx | |
| parent | 09cfb248e7b1765865bcc0c174c019acfec6681c (diff) | |
Reserve x18 on AArch64 and un-reserve x16
Diffstat (limited to 'library/std/src/sys/sgx')
| -rw-r--r-- | library/std/src/sys/sgx/ext/arch.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/library/std/src/sys/sgx/ext/arch.rs b/library/std/src/sys/sgx/ext/arch.rs index a6718006fe4..b0170e67446 100644 --- a/library/std/src/sys/sgx/ext/arch.rs +++ b/library/std/src/sys/sgx/ext/arch.rs @@ -33,9 +33,9 @@ pub fn egetkey(request: &Align512<[u8; 512]>) -> Result<Align16<[u8; 16]>, u32> asm!( // rbx is reserved by LLVM - "xchg {}, rbx", + "xchg {0}, rbx", "enclu", - "mov rbx, {}", + "mov rbx, {0}", inout(reg) request => _, inlateout("eax") ENCLU_EGETKEY => error, in("rcx") out.as_mut_ptr(), @@ -64,9 +64,9 @@ pub fn ereport( asm!( // rbx is reserved by LLVM - "xchg {}, rbx", + "xchg {0}, rbx", "enclu", - "mov rbx, {}", + "mov rbx, {0}", inout(reg) targetinfo => _, in("eax") ENCLU_EREPORT, in("rcx") reportdata, |
