patch-2.1.38 linux/arch/sparc/lib/blockops.S
Next file: linux/arch/sparc/lib/debuglocks.c
Previous file: linux/arch/sparc/lib/Makefile
Back to the patch index
Back to the overall index
- Lines: 56
- Date:
Wed May 14 15:01:20 1997
- Orig file:
v2.1.37/linux/arch/sparc/lib/blockops.S
- Orig date:
Sat Nov 9 00:12:00 1996
diff -u --recursive --new-file v2.1.37/linux/arch/sparc/lib/blockops.S linux/arch/sparc/lib/blockops.S
@@ -1,4 +1,4 @@
-/* $Id: blockops.S,v 1.5 1996/09/24 05:22:56 davem Exp $
+/* $Id: blockops.S,v 1.6 1997/05/03 02:01:54 davem Exp $
* blockops.S: Common block zero optimized routines.
*
* Copyright (C) 1996 David S. Miller (davem@caip.rutgers.edu)
@@ -46,25 +46,7 @@
.text
.align 4
- .globl C_LABEL(bzero_2page), C_LABEL(bzero_1page)
-C_LABEL(bzero_2page):
- /* %o0 = buf */
- or %g0, %g0, %g1
- or %o0, %g0, %o1
- or %g0, 0x20, %g2
-1:
- BLAST_BLOCK(%o0, 0x00)
- BLAST_BLOCK(%o0, 0x40)
- BLAST_BLOCK(%o0, 0x80)
- BLAST_BLOCK(%o0, 0xc0)
- subcc %g2, 1, %g2
- bne 1b
- add %o0, 0x100, %o0
-
- retl
- mov %o1, %o0
-
-C_LABEL(bzero_1page):
+generic_bzero_1page:
/* %o0 = buf */
or %g0, %g0, %g1
or %o0, %g0, %o1
@@ -79,10 +61,9 @@
add %o0, 0x100, %o0
retl
- mov %o1, %o0
+ nop
- .globl C_LABEL(__copy_1page)
-C_LABEL(__copy_1page):
+__generic_copy_1page:
/* %o0 = dst, %o1 = src */
or %g0, 0x10, %g1
1:
@@ -101,3 +82,9 @@
retl
nop
+
+ .data
+ .align 4
+ .globl C_LABEL(bzero_1page), C_LABEL(__copy_1page)
+C_LABEL(bzero_1page): .word generic_bzero_1page
+C_LABEL(__copy_1page): .word __generic_copy_1page
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov