ia64/xen-unstable

view xen/arch/x86/clear_page.S @ 19848:5839491bbf20

[IA64] replace MAX_VCPUS with d->max_vcpus where necessary.

don't use MAX_VCPUS, and use vcpu::max_vcpus.
The changeset of 2f9e1348aa98 introduced max_vcpus to allow more vcpus
per guest. This patch is ia64 counter part.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author Isaku Yamahata <yamahata@valinux.co.jp>
date Mon Jun 29 11:26:05 2009 +0900 (2009-06-29)
parents 79b180596baf
children
line source
1 #include <xen/config.h>
2 #include <asm/page.h>
4 #ifdef __i386__
5 #define ptr_reg %edx
6 #else
7 #define ptr_reg %rdi
8 #endif
10 ENTRY(clear_page_sse2)
11 #ifdef __i386__
12 mov 4(%esp), ptr_reg
13 #endif
14 mov $PAGE_SIZE/16, %ecx
15 xor %eax,%eax
17 0: dec %ecx
18 movnti %eax, (ptr_reg)
19 movnti %eax, 4(ptr_reg)
20 movnti %eax, 8(ptr_reg)
21 movnti %eax, 12(ptr_reg)
22 lea 16(ptr_reg), ptr_reg
23 jnz 0b
25 sfence
26 ret