Module Name: src
Committed By: simonb
Date: Sun Feb 19 11:19:51 UTC 2023
Modified Files:
src/sys/arch/mips/mips: db_interface.c
Log Message:
Adjust userspace comments in db_read_bytes() and db_write_bytes() to
match current reality.
To generate a diff of this commit:
cvs rdiff -u -r1.98 -r1.99 src/sys/arch/mips/mips/db_interface.c
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/mips/mips/db_interface.c
diff -u src/sys/arch/mips/mips/db_interface.c:1.98 src/sys/arch/mips/mips/db_interface.c:1.99
--- src/sys/arch/mips/mips/db_interface.c:1.98 Sun Feb 19 10:48:06 2023
+++ src/sys/arch/mips/mips/db_interface.c Sun Feb 19 11:19:51 2023
@@ -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 @@ db_read_bytes(vaddr_t addr, size_t size,
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 @@ db_write_bytes(vaddr_t addr, size_t size
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) {