Module Name: src Committed By: maxv Date: Fri Aug 25 11:05:46 UTC 2017
Modified Files: src/sys/arch/amd64/amd64: copy.S Log Message: Split comment, otherwise it is misleading. kcopy operates on kernel memory, and must *not* be used with userland pages. To generate a diff of this commit: cvs rdiff -u -r1.22 -r1.23 src/sys/arch/amd64/amd64/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/amd64/amd64/copy.S diff -u src/sys/arch/amd64/amd64/copy.S:1.22 src/sys/arch/amd64/amd64/copy.S:1.23 --- src/sys/arch/amd64/amd64/copy.S:1.22 Wed Aug 23 08:14:18 2017 +++ src/sys/arch/amd64/amd64/copy.S Fri Aug 25 11:05:46 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: copy.S,v 1.22 2017/08/23 08:14:18 maxv Exp $ */ +/* $NetBSD: copy.S,v 1.23 2017/08/25 11:05:46 maxv Exp $ */ /* * Copyright (c) 2001 Wasabi Systems, Inc. @@ -107,9 +107,6 @@ ENTRY(do_pmap_load) ret /* - * int kcopy(const void *from, void *to, size_t len); - * Copy len bytes, abort on fault. - * * Copy routines from and to userland, plus a few more. See the * section 9 manpages for info. Some cases can be optimized more. * @@ -125,6 +122,10 @@ ENTRY(do_pmap_load) * be ably to do cache-line size copies.... */ +/* + * int kcopy(const void *from, void *to, size_t len); + * Copy len bytes from and to kernel memory, and abort on fault. + */ ENTRY(kcopy) xchgq %rdi,%rsi movq %rdx,%rcx