Module Name: src Committed By: matt Date: Fri Dec 11 17:17:51 UTC 2009
Modified Files: src/sys/arch/mips/mips [matt-nb5-mips64]: copy.S Log Message: Cleanup/add some comments. To generate a diff of this commit: cvs rdiff -u -r1.5.38.5 -r1.5.38.6 src/sys/arch/mips/mips/copy.S Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/mips/mips/copy.S diff -u src/sys/arch/mips/mips/copy.S:1.5.38.5 src/sys/arch/mips/mips/copy.S:1.5.38.6 --- src/sys/arch/mips/mips/copy.S:1.5.38.5 Sat Dec 5 07:40:02 2009 +++ src/sys/arch/mips/mips/copy.S Fri Dec 11 17:17:51 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: copy.S,v 1.5.38.5 2009/12/05 07:40:02 cliff Exp $ */ +/* $NetBSD: copy.S,v 1.5.38.6 2009/12/11 17:17:51 matt Exp $ */ /* * Copyright (c) 1992, 1993 @@ -91,9 +91,9 @@ /* * int copyinstr(void *uaddr, void *kaddr, size_t maxlen, size_t *lencopied) - * Copy a NIL-terminated string, at most maxlen characters long, from the + * Copy a NUL-terminated string, at most maxlen characters long, from the * user's address space. Return the number of characters copied (including - * the NIL) in *lencopied. If the string is too long, return ENAMETOOLONG; + * the NUL) in *lencopied. If the string is too long, return ENAMETOOLONG; * else return 0 or EFAULT. */ LEAF(copyinstr) @@ -108,7 +108,7 @@ lbu v0, 0(a0) PTR_SUBU a2, a2, 1 beq v0, zero, 2f - sb v0, 0(a1) + sb v0, 0(a1) # write trailing NUL PTR_ADDU a0, a0, 1 bne a2, zero, 1b PTR_ADDU a1, a1, 1