patch-2.1.97 linux/include/asm-sparc/string.h

Next file: linux/include/asm-sparc/sun4paddr.h
Previous file: linux/include/asm-sparc/stat.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.96/linux/include/asm-sparc/string.h linux/include/asm-sparc/string.h
@@ -1,4 +1,4 @@
-/* $Id: string.h,v 1.33 1997/11/19 07:57:48 jj Exp $
+/* $Id: string.h,v 1.34 1998/01/30 10:59:55 jj Exp $
  * string.h: External definitions for optimized assembly string
  *           routines for the Linux Kernel.
  *
@@ -9,6 +9,8 @@
 #ifndef __SPARC_STRING_H__
 #define __SPARC_STRING_H__
 
+#include <asm/page.h>
+
 /* Really, userland/ksyms should not see any of this stuff. */
 
 #ifdef __KERNEL__
@@ -40,7 +42,7 @@
 		__builtin_memcpy(to, from, n);
 	} else {
 		switch(n) {
-		case 4096:
+		case PAGE_SIZE:
 			__copy_1page(to, from);
 			break;
 		default:
@@ -71,7 +73,7 @@
 	extern __kernel_size_t __bzero(void *, __kernel_size_t);
 
 	if(!c) {
-		if(count == 4096)
+		if(count == PAGE_SIZE)
 			bzero_1page(s);
 		else
 			__bzero(s, count);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov