Skip to content

Commit b29eb41

Browse files
committed
Avoid an unnecessary push/pop in the x86 indirect_syscall5 path.
1 parent 6e2b8c3 commit b29eb41

File tree

1 file changed

+0
-2
lines changed
  • src/imp/linux_raw/arch/inline

1 file changed

+0
-2
lines changed

src/imp/linux_raw/arch/inline/x86.rs

-2
Original file line numberDiff line numberDiff line change
@@ -159,15 +159,13 @@ pub(in crate::imp) unsafe fn indirect_syscall5(
159159
// registers free. Use eax as a temporary pointer to a slice, since it
160160
// gets clobbered as the return value anyway.
161161
asm!(
162-
"push ebp",
163162
"push esi",
164163
"push DWORD PTR [eax + 0]",
165164
"mov esi, DWORD PTR [eax + 4]",
166165
"mov eax, DWORD PTR [eax + 8]",
167166
"call DWORD PTR [esp]",
168167
"pop esi",
169168
"pop esi",
170-
"pop ebp",
171169
inout("eax") &[callee as usize, a3.to_asm(), nr.to_asm()] => r0,
172170
in("ebx") a0.to_asm(),
173171
in("ecx") a1.to_asm(),

0 commit comments

Comments
 (0)