Module Name:    src
Committed By:   pedro
Date:           Fri Jan 10 16:47:07 UTC 2014

Modified Files:
        src/sys/arch/i386/i386: copy.S

Log Message:
Fix a comment describing the check performed by copyin(); the value
checked against VM_MAXUSER_ADDRESS is derived from the source address,
not the destination address. OK rmind@.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/sys/arch/i386/i386/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/i386/i386/copy.S
diff -u src/sys/arch/i386/i386/copy.S:1.22 src/sys/arch/i386/i386/copy.S:1.23
--- src/sys/arch/i386/i386/copy.S:1.22	Wed Jul  7 01:21:15 2010
+++ src/sys/arch/i386/i386/copy.S	Fri Jan 10 16:47:07 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: copy.S,v 1.22 2010/07/07 01:21:15 chs Exp $	*/
+/*	$NetBSD: copy.S,v 1.23 2014/01/10 16:47:07 pedro Exp $	*/
 /*	NetBSD: locore.S,v 1.34 2005/04/01 11:59:31 yamt Exp $	*/
 
 /*-
@@ -65,7 +65,7 @@
  */
 
 #include <machine/asm.h>
-__KERNEL_RCSID(0, "$NetBSD: copy.S,v 1.22 2010/07/07 01:21:15 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: copy.S,v 1.23 2014/01/10 16:47:07 pedro Exp $");
 
 #include "assym.h"
 
@@ -270,9 +270,9 @@ ENTRY(copyin)
 	movl	16(%esp),%edi
 	movl	20(%esp),%eax
 	/*
-	 * We check that the end of the destination buffer is not past the end
-	 * of the user's address space.  If it's not, then we only need to
-	 * check that each page is readable, and the CPU will do that for us.
+	 * We check that the end of the source buffer is not past the end of
+	 * the user's address space.  If it's not, then we only need to check
+	 * that each page is readable, and the CPU will do that for us.
 	 */
 .Lcopyin_start:
 	movl	%esi,%edx

Reply via email to