Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/amd64/amd64 Split comment, otherwise it is misleadi...
details: https://anonhg.NetBSD.org/src/rev/c3c314d5e934
branches: trunk
changeset: 355967:c3c314d5e934
user: maxv <maxv%NetBSD.org@localhost>
date: Fri Aug 25 11:05:46 2017 +0000
description:
Split comment, otherwise it is misleading. kcopy operates on kernel
memory, and must *not* be used with userland pages.
diffstat:
sys/arch/amd64/amd64/copy.S | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (30 lines):
diff -r a8f460c70937 -r c3c314d5e934 sys/arch/amd64/amd64/copy.S
--- a/sys/arch/amd64/amd64/copy.S Fri Aug 25 00:07:02 2017 +0000
+++ b/sys/arch/amd64/amd64/copy.S Fri Aug 25 11:05:46 2017 +0000
@@ -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 @@
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 @@
* 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
Home |
Main Index |
Thread Index |
Old Index