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)
+ movq %rax,(%rdi,%rdx) /* movnti */
+ movq %rax,8(%rdi,%rdx) /* movnti */
+ movq %rax,16(%rdi,%rdx) /* movnti */
+ movq %rax,24(%rdi,%rdx) /* movnti */
addq $32,%rdx
jne 1b
- sfence
+ /*sfence*/
ret
ENTRY(bcmp)
subq %rax,%rdi
subq %rax,%rsi
1:
- prefetchnta (%rdi,%rax)
- addq $64,%rax
- jne 1b
+ /*prefetchnta (%rdi,%rax)*/
+ /*addq $64,%rax*/
+ /*jne 1b*/
2:
movq (%rdi,%rdx),%rax
- movnti %rax,(%rsi,%rdx)
+ movq %rax,(%rsi,%rdx) /* movnti */
movq 8(%rdi,%rdx),%rax
- movnti %rax,8(%rsi,%rdx)
+ movq %rax,8(%rsi,%rdx) /* movnti */
movq 16(%rdi,%rdx),%rax
- movnti %rax,16(%rsi,%rdx)
+ movq %rax,16(%rsi,%rdx) /* movnti */
movq 24(%rdi,%rdx),%rax
- movnti %rax,24(%rsi,%rdx)
+ movq %rax,24(%rsi,%rdx) /* movnti */
addq $32,%rdx
jne 2b
- sfence
+ /*sfence*/
ret
/* fillw(pat, base, cnt) */
/*
* Allocate a new page for this object/offset pair.
- *
- * XXX for now don't use the VM_ALLOC_ZERO flag
- * because this will continuously cycle pages
- * through the cpu caches. Try to use a recently
- * freed page.
*/
fs->m = NULL;
if (!vm_page_count_severe()) {
fs->m = vm_page_alloc(fs->object, pindex,
((fs->vp || fs->object->backing_object) ?
VM_ALLOC_NORMAL :
- VM_ALLOC_NORMAL /*| VM_ALLOC_ZERO*/));
+ VM_ALLOC_NORMAL | VM_ALLOC_ZERO));
}
if (fs->m == NULL) {
vm_object_pip_wakeup(fs->first_object);
/*
* NOTE: Allocated from base object
- *
- * XXX for now don't use the VM_ALLOC_ZERO
- * flag because this will continuously
- * cycle pages through the cpu caches.
- * Try to use a recently freed page.
*/
m = vm_page_alloc(object, index,
- VM_ALLOC_NORMAL /*| VM_ALLOC_ZERO*/);
+ VM_ALLOC_NORMAL | VM_ALLOC_ZERO);
if ((m->flags & PG_ZERO) == 0) {
vm_page_zero_fill(m);