Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/i386/i386 Fix a comment describing the check perfor...



details:   https://anonhg.NetBSD.org/src/rev/856c9ddaf8a6
branches:  trunk
changeset: 325888:856c9ddaf8a6
user:      pedro <pedro%NetBSD.org@localhost>
date:      Fri Jan 10 16:47:07 2014 +0000

description:
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@.

diffstat:

 sys/arch/i386/i386/copy.S |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (31 lines):

diff -r c6e420a47ced -r 856c9ddaf8a6 sys/arch/i386/i386/copy.S
--- a/sys/arch/i386/i386/copy.S Fri Jan 10 16:42:38 2014 +0000
+++ b/sys/arch/i386/i386/copy.S Fri Jan 10 16:47:07 2014 +0000
@@ -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 @@
        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



Home | Main Index | Thread Index | Old Index