patch-2.3.25 linux/arch/i386/lib/mmx.c

Next file: linux/arch/m68k/mac/iop.c
Previous file: linux/arch/i386/kernel/smpboot.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.24/linux/arch/i386/lib/mmx.c linux/arch/i386/lib/mmx.c
@@ -89,7 +89,7 @@
 	return p;
 }
 
-static void fast_clear_page(long page)
+static void fast_clear_page(void *page)
 {
 	int i;
 	if (!(current->flags & PF_USEDFPU))
@@ -129,7 +129,7 @@
 	stts();
 }
 
-static void fast_copy_page(long to, long from)
+static void fast_copy_page(void *to, void *from)
 {
 	int i;
 	if (!(current->flags & PF_USEDFPU))
@@ -196,7 +196,7 @@
  *	Favour MMX for page clear and copy. 
  */
 
-static void slow_zero_page(long page)
+static void slow_zero_page(void * page)
 {
 	int d0, d1;
 	__asm__ __volatile__( \
@@ -207,7 +207,7 @@
 		:"memory");
 }
  
-void mmx_clear_page(long page)
+void mmx_clear_page(void * page)
 {
 	if(in_interrupt())
 		slow_zero_page(page);
@@ -215,7 +215,7 @@
 		fast_clear_page(page);
 }
 
-static void slow_copy_page(long to, long from)
+static void slow_copy_page(void *to, void *from)
 {
 	int d0, d1, d2;
 	__asm__ __volatile__( \
@@ -227,7 +227,7 @@
 }
   
 
-void mmx_copy_page(long to, long from)
+void mmx_copy_page(void *to, void *from)
 {
 	if(in_interrupt())
 		slow_copy_page(to, from);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)