From ea310d9253f02649b450b822e18ed5c22868acce Mon Sep 17 00:00:00 2001 From: Amanieu d'Antras Date: Fri, 30 Apr 2021 18:30:30 +0100 Subject: Reserve x18 on AArch64 and un-reserve x16 --- library/std/src/sys/sgx/ext/arch.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'library/std/src/sys') 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, 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, -- cgit 1.4.1-3-g733a5