Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mips/mips Adjust userspace comments in db_read_byte...



details:   https://anonhg.NetBSD.org/src/rev/a8efff091449
branches:  trunk
changeset: 373586:a8efff091449
user:      simonb <simonb%NetBSD.org@localhost>
date:      Sun Feb 19 11:19:51 2023 +0000

description:
Adjust userspace comments in db_read_bytes() and db_write_bytes() to
match current reality.

diffstat:

 sys/arch/mips/mips/db_interface.c |  12 ++++--------
 1 files changed, 4 insertions(+), 8 deletions(-)

diffs (40 lines):

diff -r 56d9e3d3a2bc -r a8efff091449 sys/arch/mips/mips/db_interface.c
--- a/sys/arch/mips/mips/db_interface.c Sun Feb 19 10:54:35 2023 +0000
+++ b/sys/arch/mips/mips/db_interface.c Sun Feb 19 11:19:51 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db_interface.c,v 1.98 2023/02/19 10:48:06 mlelstv Exp $        */
+/*     $NetBSD: db_interface.c,v 1.99 2023/02/19 11:19:51 simonb Exp $ */
 
 /*
  * Mach Operating System
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.98 2023/02/19 10:48:06 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.99 2023/02/19 11:19:51 simonb Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_multiprocessor.h"
@@ -185,11 +185,7 @@
        const char *src = (char *)addr;
        int err;
 
-       /*
-        * If asked to fetch from userspace, do it safely.
-        * Note that MIPS_KSEG0_START is the proper address for
-        * both 32-bit and 64-bit kernels.
-        */
+       /* If asked to fetch from userspace, do it safely */
        if (addr < VM_MAXUSER_ADDRESS) {
                err = copyin(src, data, size);
                if (err) {
@@ -227,7 +223,7 @@
        size_t n = size;
        int err;
 
-       /* If asked to fetch from userspace, do it safely */
+       /* If asked to store to userspace, do it safely */
        if (addr < VM_MAXUSER_ADDRESS) {
                err = copyout(data, p, size);
                if (err) {



Home | Main Index | Thread Index | Old Index