diff options
author | Javier Martinez Canillas <martinez.javier@gmail.com> | 2010-12-07 02:21:44 +0100 |
---|---|---|
committer | Javier Martinez Canillas <martinez.javier@gmail.com> | 2010-12-07 02:21:44 +0100 |
commit | 1b198d8190a92cea056db125a0545aa408447dde (patch) | |
tree | 5452471ad1c4a9c1b0507e28a0263a823778c35b /simple | |
parent | 5ae6be9578b5a7657324dd7a85b2adfd2ba2c9cb (diff) | |
download | ldd3-1b198d8190a92cea056db125a0545aa408447dde.tar.gz |
simple: Change NOPAGE_SIBUS to VM_FAULT_SIGBUS
Diffstat (limited to 'simple')
-rw-r--r-- | simple/simple.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/simple/simple.c b/simple/simple.c index 8c553e7..1c286dd 100644 --- a/simple/simple.c +++ b/simple/simple.c @@ -111,7 +111,7 @@ struct page *simple_vma_nopage(struct vm_area_struct *vma, printk (KERN_NOTICE "VA is %p\n", __va (physaddr)); printk (KERN_NOTICE "Page at %p\n", virt_to_page (__va (physaddr))); if (!pfn_valid(pageframe)) - return NOPAGE_SIGBUS; + return VM_FAULT_SIGBUS; pageptr = pfn_to_page(pageframe); printk (KERN_NOTICE "page->index = %ld mapping %p\n", pageptr->index, pageptr->mapping); printk (KERN_NOTICE "Page frame %ld\n", pageframe); @@ -124,7 +124,7 @@ struct page *simple_vma_nopage(struct vm_area_struct *vma, static struct vm_operations_struct simple_nopage_vm_ops = { .open = simple_vma_open, .close = simple_vma_close, - .nopage = simple_vma_nopage, + .fault = simple_vma_nopage, }; static int simple_nopage_mmap(struct file *filp, struct vm_area_struct *vma) |