ia64/xen-unstable

annotate xen/arch/x86/clear_page.S @ 18806:ed8524f4a044

x86: Re-initialise HPET on resume from S3

Signed-off-by: Guanqun Lu <guanqun.lu@intel.com>
Signed-off-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Nov 18 15:55:14 2008 +0000 (2008-11-18)
parents 79b180596baf
children
rev   line source
kfraser@15425 1 #include <xen/config.h>
kfraser@15425 2 #include <asm/page.h>
kfraser@15425 3
kfraser@15425 4 #ifdef __i386__
kfraser@15425 5 #define ptr_reg %edx
kfraser@15425 6 #else
kfraser@15425 7 #define ptr_reg %rdi
kfraser@15425 8 #endif
kfraser@15425 9
kfraser@15425 10 ENTRY(clear_page_sse2)
kfraser@15425 11 #ifdef __i386__
kfraser@15425 12 mov 4(%esp), ptr_reg
kfraser@15425 13 #endif
kfraser@15425 14 mov $PAGE_SIZE/16, %ecx
kfraser@15425 15 xor %eax,%eax
kfraser@15425 16
kfraser@15425 17 0: dec %ecx
kfraser@15425 18 movnti %eax, (ptr_reg)
kfraser@15425 19 movnti %eax, 4(ptr_reg)
kfraser@15425 20 movnti %eax, 8(ptr_reg)
kfraser@15425 21 movnti %eax, 12(ptr_reg)
kfraser@15425 22 lea 16(ptr_reg), ptr_reg
kfraser@15425 23 jnz 0b
kfraser@15425 24
kfraser@15425 25 sfence
kfraser@15425 26 ret