Rollup merge of #85054 - jethrogb:jb/sgx-inline-asm, r=Amanieu

Revert SGX inline asm syntax

This was erroneously changed in #83387
This commit is contained in:
Yuki Okushi
2021-06-22 07:37:42 +09:00
committed by GitHub
2 changed files with 8 additions and 8 deletions

View File

@@ -36,9 +36,9 @@ pub fn image_base() -> u64 {
let base: u64;
unsafe {
asm!(
"lea {}, qword ptr [rip + IMAGE_BASE]",
"lea IMAGE_BASE(%rip), {}",
lateout(reg) base,
options(nostack, preserves_flags, nomem, pure),
options(att_syntax, nostack, preserves_flags, nomem, pure),
)
};
base