patch-2.4.3 linux/arch/i386/lib/mmx.c
Next file: linux/arch/i386/mm/extable.c
Previous file: linux/arch/i386/kernel/traps.c
Back to the patch index
Back to the overall index
- Lines: 25
- Date:
Thu Mar 1 18:04:34 2001
- Orig file:
v2.4.2/linux/arch/i386/lib/mmx.c
- Orig date:
Sat Feb 3 19:51:22 2001
diff -u --recursive --new-file v2.4.2/linux/arch/i386/lib/mmx.c linux/arch/i386/lib/mmx.c
@@ -3,6 +3,7 @@
#include <linux/sched.h>
#include <asm/i387.h>
+#include <asm/hardirq.h>
/*
* MMX 3DNow! library helper functions
@@ -25,8 +26,14 @@
void *_mmx_memcpy(void *to, const void *from, size_t len)
{
- void *p=to;
- int i= len >> 6; /* len/64 */
+ void *p;
+ int i;
+
+ if (in_interrupt())
+ return __memcpy(to, from, len);
+
+ p = to;
+ i = len >> 6; /* len/64 */
kernel_fpu_begin();
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)