Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=3cdc7fc7fd5bd1ead75758dfadef609a6e9fd3de
Commit:     3cdc7fc7fd5bd1ead75758dfadef609a6e9fd3de
Parent:     2018df76d276bb4fe97b175bd5db0cdd128dfeb4
Author:     Nick Piggin <[EMAIL PROTECTED]>
AuthorDate: Thu Dec 13 15:58:27 2007 -0800
Committer:  Tony Luck <[EMAIL PROTECTED]>
CommitDate: Tue Dec 18 16:55:46 2007 -0800

    [IA64] ia32 nopage
    
    Convert ia64's ia32 support from nopage to fault.
    
    Signed-off-by: Nick Piggin <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Tony Luck <[EMAIL PROTECTED]>
---
 arch/ia64/ia32/binfmt_elf32.c |   28 ++++++++++++----------------
 1 files changed, 12 insertions(+), 16 deletions(-)

diff --git a/arch/ia64/ia32/binfmt_elf32.c b/arch/ia64/ia32/binfmt_elf32.c
index f6ae3ec..3e35987 100644
--- a/arch/ia64/ia32/binfmt_elf32.c
+++ b/arch/ia64/ia32/binfmt_elf32.c
@@ -52,33 +52,29 @@ extern struct page *ia32_shared_page[];
 extern unsigned long *ia32_gdt;
 extern struct page *ia32_gate_page;
 
-struct page *
-ia32_install_shared_page (struct vm_area_struct *vma, unsigned long address, 
int *type)
+int
+ia32_install_shared_page (struct vm_area_struct *vma, struct vm_fault *vmf)
 {
-       struct page *pg = ia32_shared_page[smp_processor_id()];
-       get_page(pg);
-       if (type)
-               *type = VM_FAULT_MINOR;
-       return pg;
+       vmf->page = ia32_shared_page[smp_processor_id()];
+       get_page(vmf->page);
+       return 0;
 }
 
-struct page *
-ia32_install_gate_page (struct vm_area_struct *vma, unsigned long address, int 
*type)
+int
+ia32_install_gate_page (struct vm_area_struct *vma, struct vm_fault *vmf)
 {
-       struct page *pg = ia32_gate_page;
-       get_page(pg);
-       if (type)
-               *type = VM_FAULT_MINOR;
-       return pg;
+       vmf->page = ia32_gate_page;
+       get_page(vmf->page);
+       return 0;
 }
 
 
 static struct vm_operations_struct ia32_shared_page_vm_ops = {
-       .nopage = ia32_install_shared_page
+       .fault = ia32_install_shared_page
 };
 
 static struct vm_operations_struct ia32_gate_page_vm_ops = {
-       .nopage = ia32_install_gate_page
+       .fault = ia32_install_gate_page
 };
 
 void
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to