From: Dave A. <ai...@us...> - 2001-03-11 23:52:38
|
Update of /cvsroot/linux-vax/kernel-2.4/arch/vax/lib In directory usw-pr-cvs1:/tmp/cvs-serv26260 Modified Files: Makefile string_user.c Added Files: strnlen_user.S Log Message: strnlen_user and strlen_user implemented.. only one left - clear_user... --- NEW FILE --- /* * $Id: strnlen_user.S,v 1.1 2001/03/11 23:54:31 airlied Exp $ * * Copyright (C) 2001, Dave Airlie * * VAX Assembly implementation of strnlen */ #include <asm/errno.h> #include <linux/linkage.h> /* long __strnlen_user(const char *s, long n) * Returns either strlen s or n */ #define EX(insn, arg0, arg1, handler) \ 9: insn arg0, arg1; \ .section __ex_table, "a"; \ .long 9b, handler; \ .previous .text ENTRY(__strnlen_user) .word 0x3e movl 4(ap), r0 movl 8(ap), r1 movl r0, r2 1: EX(movb, (r0)+, r3, fault) cmpb $0, r3 beql 2f sobgtr r1, 1b incl r0 2: subl2 r2, r0 ret .section .fixup,"ax" .align 4 fault: movl $0, r0 ret Index: Makefile =================================================================== RCS file: /cvsroot/linux-vax/kernel-2.4/arch/vax/lib/Makefile,v retrieving revision 1.10 retrieving revision 1.11 diff -u -r1.10 -r1.11 --- Makefile 2001/03/11 22:08:00 1.10 +++ Makefile 2001/03/11 23:54:31 1.11 @@ -12,7 +12,7 @@ all: libio.a L_TARGET := libio.a -obj-y := string.o string_user.o console.o negdi.o checksum.o lshrdi3.o strncpy_user.o copy_tofrom_user.o +obj-y := string.o string_user.o console.o negdi.o checksum.o lshrdi3.o strncpy_user.o copy_tofrom_user.o strnlen_user.o include $(TOPDIR)/Rules.make Index: string_user.c =================================================================== RCS file: /cvsroot/linux-vax/kernel-2.4/arch/vax/lib/string_user.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- string_user.c 2001/03/11 22:08:00 1.3 +++ string_user.c 2001/03/11 23:54:31 1.4 @@ -15,15 +15,3 @@ panic("__clear_user: not implemented"); } - -extern long __strlen_user(const char *s) -{ - panic("__strlen_user: not implemented"); -} - - -extern long __strnlen_user(const char *s, long n) -{ - panic("__strnlen_user: not implemented"); -} - |