2 * Copy to/from userspace with optional address space checking.
4 * Copyright 2004-2006 Atmel Corporation
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
11 #include <asm/thread_info.h>
12 #include <asm/processor.h>
18 .type strnlen_user, "function"
20 branch_if_kernel r8, __strnlen_user
24 brmi adjust_length /* do a closer inspection */
26 .global __strnlen_user
27 .type __strnlen_user, "function"
42 .type adjust_length, "function"
44 cp.w r12, 0 /* addr must always be < TASK_SIZE */
65 .section __ex_table, "a"