1 /* $Id: strlen_user.S,v 1.3 1999/08/21 22:19:11 ralf Exp $
3 * This file is subject to the terms and conditions of the GNU General Public
4 * License. See the file "COPYING" in the main directory of this archive
7 * Copyright (c) 1996, 1998, 1999 by Ralf Baechle
8 * Copyright (c) 1999 Silicon Graphics, Inc.
11 #include <asm/offset.h>
12 #include <asm/regdef.h>
13 #include <asm/sgidefs.h>
15 #define EX(insn,reg,addr,handler) \
17 .section __ex_table,"a"; \
22 * Return the size of a string (including the ending 0)
26 LEAF(__strlen_user_asm)
27 lw v0, THREAD_CURDS($28) # pointer ok?
31 EXPORT(__strlen_user_nocheck_asm)
33 1: EX(lb, t0, (v0), fault)
38 END(__strlen_user_nocheck_asm)
40 .section __ex_table,"a"