![Andi Kleen](/assets/img/avatar_default.png)
B stepping were the first shipping Opterons. memcpy/memset/copy_page/ clear_page had special optimized version for them. These are really old and in the minority now and the difference to the generic versions (using rep microcode) is not that big anyways. So just remove them. TODO: figure out optimized versions for Intel Netburst based EM64T Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
13 lines
136 B
ArmAsm
13 lines
136 B
ArmAsm
/*
|
|
* Zero a page.
|
|
* rdi page
|
|
*/
|
|
.globl clear_page
|
|
.p2align 4
|
|
clear_page:
|
|
movl $4096/8,%ecx
|
|
xorl %eax,%eax
|
|
rep
|
|
stosq
|
|
ret
|