diff options
author | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-06-20 15:33:14 +0100 |
---|---|---|
committer | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-06-20 15:33:14 +0100 |
commit | 340643863ba2e9d1d93f17880f5f16317974c5e6 (patch) | |
tree | cf22ea05444d37df313e599e2052e2a4fa920260 /xen/arch/x86/x86_64/traps.c | |
parent | b7954cc5983140272e6a96e34e6de6e8674018e1 (diff) | |
download | xen-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.c | 1 |
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) ) |