patch-2.4.19 linux-2.4.19/arch/i386/kernel/semaphore.c
Next file: linux-2.4.19/arch/i386/kernel/setup.c
Previous file: linux-2.4.19/arch/i386/kernel/ptrace.c
Back to the patch index
Back to the overall index
- Lines: 62
- Date:
Fri Aug 2 17:39:42 2002
- Orig file:
linux-2.4.18/arch/i386/kernel/semaphore.c
- Orig date:
Fri Nov 9 13:58:02 2001
diff -urN linux-2.4.18/arch/i386/kernel/semaphore.c linux-2.4.19/arch/i386/kernel/semaphore.c
@@ -182,6 +182,10 @@
".align 4\n"
".globl __down_failed\n"
"__down_failed:\n\t"
+#if defined(CONFIG_FRAME_POINTER)
+ "pushl %ebp\n\t"
+ "movl %esp,%ebp\n\t"
+#endif
"pushl %eax\n\t"
"pushl %edx\n\t"
"pushl %ecx\n\t"
@@ -189,6 +193,10 @@
"popl %ecx\n\t"
"popl %edx\n\t"
"popl %eax\n\t"
+#if defined(CONFIG_FRAME_POINTER)
+ "movl %ebp,%esp\n\t"
+ "popl %ebp\n\t"
+#endif
"ret"
);
@@ -197,11 +205,19 @@
".align 4\n"
".globl __down_failed_interruptible\n"
"__down_failed_interruptible:\n\t"
+#if defined(CONFIG_FRAME_POINTER)
+ "pushl %ebp\n\t"
+ "movl %esp,%ebp\n\t"
+#endif
"pushl %edx\n\t"
"pushl %ecx\n\t"
"call __down_interruptible\n\t"
"popl %ecx\n\t"
"popl %edx\n\t"
+#if defined(CONFIG_FRAME_POINTER)
+ "movl %ebp,%esp\n\t"
+ "popl %ebp\n\t"
+#endif
"ret"
);
@@ -210,11 +226,19 @@
".align 4\n"
".globl __down_failed_trylock\n"
"__down_failed_trylock:\n\t"
+#if defined(CONFIG_FRAME_POINTER)
+ "pushl %ebp\n\t"
+ "movl %esp,%ebp\n\t"
+#endif
"pushl %edx\n\t"
"pushl %ecx\n\t"
"call __down_trylock\n\t"
"popl %ecx\n\t"
"popl %edx\n\t"
+#if defined(CONFIG_FRAME_POINTER)
+ "movl %ebp,%esp\n\t"
+ "popl %ebp\n\t"
+#endif
"ret"
);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)