[IA64] ia32 nopage

Convert ia64's ia32 support from nopage to fault.

Signed-off-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Tony Luck <tony.luck@intel.com>

authored by Nick Piggin and committed by Tony Luck 3cdc7fc7 2018df76

+12 -16
+12 -16
arch/ia64/ia32/binfmt_elf32.c
··· 52 extern unsigned long *ia32_gdt; 53 extern struct page *ia32_gate_page; 54 55 - struct page * 56 - ia32_install_shared_page (struct vm_area_struct *vma, unsigned long address, int *type) 57 { 58 - struct page *pg = ia32_shared_page[smp_processor_id()]; 59 - get_page(pg); 60 - if (type) 61 - *type = VM_FAULT_MINOR; 62 - return pg; 63 } 64 65 - struct page * 66 - ia32_install_gate_page (struct vm_area_struct *vma, unsigned long address, int *type) 67 { 68 - struct page *pg = ia32_gate_page; 69 - get_page(pg); 70 - if (type) 71 - *type = VM_FAULT_MINOR; 72 - return pg; 73 } 74 75 76 static struct vm_operations_struct ia32_shared_page_vm_ops = { 77 - .nopage = ia32_install_shared_page 78 }; 79 80 static struct vm_operations_struct ia32_gate_page_vm_ops = { 81 - .nopage = ia32_install_gate_page 82 }; 83 84 void
··· 52 extern unsigned long *ia32_gdt; 53 extern struct page *ia32_gate_page; 54 55 + int 56 + ia32_install_shared_page (struct vm_area_struct *vma, struct vm_fault *vmf) 57 { 58 + vmf->page = ia32_shared_page[smp_processor_id()]; 59 + get_page(vmf->page); 60 + return 0; 61 } 62 63 + int 64 + ia32_install_gate_page (struct vm_area_struct *vma, struct vm_fault *vmf) 65 { 66 + vmf->page = ia32_gate_page; 67 + get_page(vmf->page); 68 + return 0; 69 } 70 71 72 static struct vm_operations_struct ia32_shared_page_vm_ops = { 73 + .fault = ia32_install_shared_page 74 }; 75 76 static struct vm_operations_struct ia32_gate_page_vm_ops = { 77 + .fault = ia32_install_gate_page 78 }; 79 80 void