aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/x86_64/traps.c
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-06-20 15:33:14 +0100
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-06-20 15:33:14 +0100
commit340643863ba2e9d1d93f17880f5f16317974c5e6 (patch)
treecf22ea05444d37df313e599e2052e2a4fa920260 /xen/arch/x86/x86_64/traps.c
parentb7954cc5983140272e6a96e34e6de6e8674018e1 (diff)
downloadxen-340643863ba2e9d1d93f17880f5f16317974c5e6.tar.gz
xen-340643863ba2e9d1d93f17880f5f16317974c5e6.tar.bz2
xen-340643863ba2e9d1d93f17880f5f16317974c5e6.zip
Use clear_page() wherever possible/reasonable instead of open coded
memset() calls (likewise a few replacements memcpy -> copy_page). Signed-off-by: Jan Beulich <jbeulich@novell.com>
Diffstat (limited to 'xen/arch/x86/x86_64/traps.c')
-rw-r--r--xen/arch/x86/x86_64/traps.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xen/arch/x86/x86_64/traps.c b/xen/arch/x86/x86_64/traps.c
index e23ed82c75..6b14040a14 100644
--- a/xen/arch/x86/x86_64/traps.c
+++ b/xen/arch/x86/x86_64/traps.c
@@ -510,6 +510,7 @@ static void hypercall_page_initialise_ring3_kernel(void *hypercall_page)
void hypercall_page_initialise(struct domain *d, void *hypercall_page)
{
+ memset(hypercall_page, 0xCC, PAGE_SIZE);
if ( is_hvm_domain(d) )
hvm_hypercall_page_initialise(d, hypercall_page);
else if ( !is_pv_32bit_domain(d) )