Restore the nontemporal pagezero() under the name sse2_pagezero() (the
same name as for i386). It is not reconnected yet. Which method is better is too machine-dependent and system-dependent to replace the old method unconditionally.
This commit is contained in:
parent
fdda77284f
commit
537a47a1ba
@ -72,6 +72,24 @@ ENTRY(pagezero)
|
||||
ret
|
||||
END(pagezero)
|
||||
|
||||
/* Address: %rdi */
|
||||
ENTRY(sse2_pagezero)
|
||||
PUSH_FRAME_POINTER
|
||||
movq $-PAGE_SIZE,%rdx
|
||||
subq %rdx,%rdi
|
||||
xorl %eax,%eax
|
||||
1:
|
||||
movnti %rax,(%rdi,%rdx)
|
||||
movnti %rax,8(%rdi,%rdx)
|
||||
movnti %rax,16(%rdi,%rdx)
|
||||
movnti %rax,24(%rdi,%rdx)
|
||||
addq $32,%rdx
|
||||
jne 1b
|
||||
sfence
|
||||
POP_FRAME_POINTER
|
||||
ret
|
||||
END(pagezero)
|
||||
|
||||
ENTRY(bcmp)
|
||||
PUSH_FRAME_POINTER
|
||||
movq %rdx,%rcx
|
||||
|
Loading…
Reference in New Issue
Block a user