2 * arch/mips/lib/strlen_user.S
4 * This file is subject to the terms and conditions of the GNU General Public
5 * License. See the file "COPYING" in the main directory of this archive
8 * Copyright (c) 1996, 1998 by Ralf Baechle
10 * $Id: strlen_user.S,v 1.2 1998/05/04 09:12:54 ralf Exp $
13 #include <asm/offset.h>
14 #include <asm/regdef.h>
15 #include <asm/sgidefs.h>
17 #define EX(insn,reg,addr,handler) \
19 .section __ex_table,"a"; \
24 * Return the size of a string (including the ending 0)
28 LEAF(__strlen_user_nocheck_asm)
29 lw v0, THREAD_CURDS($28) # pointer ok?
34 EXPORT(__strlen_user_asm)
36 1: EX(lb, t0, (v0), fault)
41 END(__strlen_user_nocheck_asm)
43 .section __ex_table,"a"