2
* linux/arch/unicore32/lib/strnlen_user.S
4
* Code specific to PKUnity SoC and UniCore ISA
6
* Copyright (C) 2001-2010 GUAN Xue-tao
8
* This program is free software; you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License version 2 as
10
* published by the Free Software Foundation.
12
#include <linux/linkage.h>
13
#include <asm/assembler.h>
14
#include <asm/errno.h>
19
/* Prototype: unsigned long __strnlen_user(const char *str, long n)
20
* Purpose : get length of a string in user memory
21
* Params : str - address of string in user memory
22
* Returns : length of string *including terminator*
23
* or zero on exception, or n + 1 if too long
36
ENDPROC(__strnlen_user)
38
.pushsection .fixup,"ax"