X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=arch%2Fx86_64%2Fia32%2Fsyscall32-xen.c;h=9c416f02eb0e93f1c07d2a14a1e65f99e86a8ce5;hb=16c70f8c1b54b61c3b951b6fb220df250fe09b32;hp=e99a6f758536ae4e2ca90302459a30e1357303ab;hpb=4e76c8a9fa413ccc09d3f7f664183dcce3555d57;p=linux-2.6.git diff --git a/arch/x86_64/ia32/syscall32-xen.c b/arch/x86_64/ia32/syscall32-xen.c index e99a6f758..9c416f02e 100644 --- a/arch/x86_64/ia32/syscall32-xen.c +++ b/arch/x86_64/ia32/syscall32-xen.c @@ -10,6 +10,7 @@ #include #include #include +#include #include #include #include @@ -47,7 +48,9 @@ static struct vm_operations_struct syscall32_vm_ops = { struct linux_binprm; /* Setup a VMA at program startup for the vsyscall page */ -int syscall32_setup_pages(struct linux_binprm *bprm, int exstack) +int syscall32_setup_pages(struct linux_binprm *bprm, int exstack, + unsigned long start_code, + unsigned long interp_map_address) { int npages = (VSYSCALL32_END - VSYSCALL32_BASE) >> PAGE_SHIFT; struct vm_area_struct *vma; @@ -75,7 +78,7 @@ int syscall32_setup_pages(struct linux_binprm *bprm, int exstack) kmem_cache_free(vm_area_cachep, vma); return ret; } - mm->total_vm += npages; + vx_vmpages_add(mm, npages); up_write(&mm->mmap_sem); return 0; }