Skip to content

Commit ad47e45

Browse files
committed
Avoid an unnecessary push/pop in the x86 indirect_syscall5 path.
1 parent 43975ec commit ad47e45

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
@@ -153,15 +153,13 @@ pub(in crate::imp) unsafe fn indirect_syscall5(
153153
// registers free. Use eax as a temporary pointer to a slice, since it
154154
// gets clobbered as the return value anyway.
155155
asm!(
156-
"push ebp",
157156
"push esi",
158157
"push DWORD PTR [eax + 0]",
159158
"mov esi, DWORD PTR [eax + 4]",
160159
"mov eax, DWORD PTR [eax + 8]",
161160
"call DWORD PTR [esp]",
162161
"pop esi",
163162
"pop esi",
164-
"pop ebp",
165163
inout("eax") &[callee as usize, a3.to_asm(), nr.to_asm()] => r0,
166164
in("ebx") a0.to_asm(),
167165
in("ecx") a1.to_asm(),

0 commit comments

Comments
 (0)