| * Copyright (C) 2001 Chris Emerson (cemerson@chiark.greenend.org.uk) |
| * Copyright (C) 2001 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) |
| * These are here rather than tt/uaccess.c because skas mode needs them in |
| * order to do SIGBUS recovery when a tmpfs mount runs out of room. |
| #include <linux/string.h> |
| static void __do_copy(void *to, const void *from, int n) |
| int __do_copy_to_user(void *to, const void *from, int n, |
| void **fault_addr, jmp_buf **fault_catcher) |
| fault = __do_user_copy(to, from, n, fault_addr, fault_catcher, |
| return n - (fault - (unsigned long) to); |