]> xenbits.xensource.com Git - people/vhanquez/xen.git/commitdiff
Initialize the entire hypercall page when running a ring0 kernel
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Tue, 13 Jun 2006 10:33:14 +0000 (11:33 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Tue, 13 Jun 2006 10:33:14 +0000 (11:33 +0100)
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
xen-unstable changeset:   10329:bb89ec7765c75321bb7ed0dca20e6c044da4d13c
xen-unstable date:        Mon Jun 12 18:23:42 2006 +0100

xen/arch/x86/x86_32/traps.c

index 59d1a845a850356c1a93c8ff5c5af4f0e75d52be..359e1eaa3d8743fcc71882f44da373b4546f7972 100644 (file)
@@ -341,7 +341,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));