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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user