Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 75083
b: refs/heads/master
c: 3cdc7fc
h: refs/heads/master
i:
  75081: 3f2c3f8
  75079: d54c9d5
v: v3
  • Loading branch information
Nick Piggin authored and Tony Luck committed Dec 19, 2007
1 parent 0a4ea2e commit 9531d41
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 17 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2018df76d276bb4fe97b175bd5db0cdd128dfeb4
refs/heads/master: 3cdc7fc7fd5bd1ead75758dfadef609a6e9fd3de
28 changes: 12 additions & 16 deletions trunk/arch/ia64/ia32/binfmt_elf32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9531d41

Please sign in to comment.