git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fedora kernel-2.6.17-1.2142_FC4 patched with stable patch-2.6.17.4-vs2.0.2-rc26.diff
[linux-2.6.git]
/
arch
/
x86_64
/
lib
/
clear_page.S
diff --git
a/arch/x86_64/lib/clear_page.S
b/arch/x86_64/lib/clear_page.S
index
30a9da4
..
1f81b79
100644
(file)
--- a/
arch/x86_64/lib/clear_page.S
+++ b/
arch/x86_64/lib/clear_page.S
@@
-10,7
+10,7
@@
clear_page:
.p2align 4
.Lloop:
decl %ecx
.p2align 4
.Lloop:
decl %ecx
-#define PUT(x) movq %rax,x*8(%rdi)
+#define PUT(x) movq %rax,x*8(%rdi)
movq %rax,(%rdi)
PUT(1)
PUT(2)
movq %rax,(%rdi)
PUT(1)
PUT(2)
@@
-23,19
+23,19
@@
clear_page:
jnz .Lloop
nop
ret
jnz .Lloop
nop
ret
-clear_page_end:
-
- /*
C stepping K8
run faster using the string instructions.
+clear_page_end:
+
+ /*
Some CPUs
run faster using the string instructions.
It is also a lot simpler. Use this when possible */
It is also a lot simpler. Use this when possible */
-
+
#include <asm/cpufeature.h>
#include <asm/cpufeature.h>
-
+
.section .altinstructions,"a"
.align 8
.quad clear_page
.quad clear_page_c
.section .altinstructions,"a"
.align 8
.quad clear_page
.quad clear_page_c
- .byte X86_FEATURE_
K8_C
- .byte clear_page_end-clear_page
+ .byte X86_FEATURE_
REP_GOOD
+ .byte clear_page_end-clear_page
.byte clear_page_c_end-clear_page_c
.previous
.byte clear_page_c_end-clear_page_c
.previous