patch-2.4.4 linux/arch/ia64/lib/copy_page.S
Next file: linux/arch/ia64/lib/copy_user.S
Previous file: linux/arch/ia64/lib/clear_user.S
Back to the patch index
Back to the overall index
- Lines: 73
- Date:
Thu Apr 5 12:51:47 2001
- Orig file:
v2.4.3/linux/arch/ia64/lib/copy_page.S
- Orig date:
Thu Jun 22 07:09:44 2000
diff -u --recursive --new-file v2.4.3/linux/arch/ia64/lib/copy_page.S linux/arch/ia64/lib/copy_page.S
@@ -3,14 +3,14 @@
* Optimized version of the standard copy_page() function
*
* Based on comments from ddd. Try not to overflow write buffer.
- *
+ *
* Inputs:
- * in0: address of target page
+ * in0: address of target page
* in1: address of source page
* Output:
- * no return value
+ * no return value
*
- * Copyright (C) 1999 Hewlett-Packard Co
+ * Copyright (C) 1999, 2001 Hewlett-Packard Co
* Copyright (C) 1999 Stephane Eranian <eranian@hpl.hp.com>
*/
#include <asm/asmmacro.h>
@@ -28,28 +28,23 @@
#define tgt1 r22
#define tgt2 r23
- .text
- .psr abi64
- .psr lsb
- .lsb
-
GLOBAL_ENTRY(copy_page)
- UNW(.prologue)
- UNW(.save ar.pfs, saved_pfs)
+ .prologue
+ .save ar.pfs, saved_pfs
alloc saved_pfs=ar.pfs,3,((2*PIPE_DEPTH+7)&~7),0,((2*PIPE_DEPTH+7)&~7)
.rotr t1[PIPE_DEPTH], t2[PIPE_DEPTH]
.rotp p[PIPE_DEPTH]
- UNW(.save ar.lc, saved_lc)
+ .save ar.lc, saved_lc
mov saved_lc=ar.lc // save ar.lc ahead of time
- UNW(.save pr, saved_pr)
+ .save pr, saved_pr
mov saved_pr=pr // rotating predicates are preserved
// resgisters we must save.
- UNW(.body)
+ .body
- mov src1=in1 // initialize 1st stream source
- adds src2=8,in1 // initialize 2nd stream source
+ mov src1=in1 // initialize 1st stream source
+ adds src2=8,in1 // initialize 2nd stream source
mov lcount=PAGE_SIZE/16-1 // as many 16bytes as there are on a page
// -1 is because br.ctop is repeat/until
@@ -72,7 +67,7 @@
//
// The initialization of the prolog is done via the predicate registers:
// the choice of EPI DEPENDS on the depth of the pipeline (n).
- // When lc > 0 pr63=1 and it is fed back into pr16 and pr16-pr62
+ // When lc > 0 pr63=1 and it is fed back into pr16 and pr16-pr62
// are then shifted right at every iteration,
// Thus by initializing pr16=1 and the rest to 0 before the loop
// we get EPI=1 after n iterations.
@@ -87,7 +82,7 @@
// stores but no loads anymore
;;
mov pr=saved_pr,0xffffffffffff0000 // restore predicates
- mov ar.pfs=saved_pfs // restore ar.ec
+ mov ar.pfs=saved_pfs // restore ar.ec
mov ar.lc=saved_lc // restore saved lc
br.ret.sptk.few rp // bye...
END(copy_page)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)