Initialize the entire hypercall page when running a ring0 kernel
authorIan.Campbell@xensource.com <Ian.Campbell@xensource.com>
Mon, 12 Jun 2006 17:23:42 +0000 (18:23 +0100)
committerIan.Campbell@xensource.com <Ian.Campbell@xensource.com>
Mon, 12 Jun 2006 17:23:42 +0000 (18:23 +0100)
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
xen/arch/x86/x86_32/traps.c

index 6fce183a17ce887beb0bac67847c41bd1f6e5ff4..eb5beb44ad5002c6959ccad55949ddb19b9cb8af 100644 (file)
@@ -460,7 +460,7 @@ static void hypercall_page_initialise_ring0_kernel(void *hypercall_page)
 
     /* Fill in all the transfer points with template machine code. */
 
-    for ( i = 0; i < NR_hypercalls; i++ )
+    for ( i = 0; i < (PAGE_SIZE / 32); i++ )
     {
         p = (char *)(hypercall_page + (i * 32));