Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/hpc Clarify the comment in the "unconst" version of ...



details:   https://anonhg.NetBSD.org/src/rev/7618d77f6f4f
branches:  trunk
changeset: 433520:7618d77f6f4f
user:      uwe <uwe%NetBSD.org@localhost>
date:      Tue Sep 18 14:57:32 2018 +0000

description:
Clarify the comment in the "unconst" version of hpckbd_keymap_setup.
Both sh3 (P1) and mips (kseg0) have the kernel directly mapped.

diffstat:

 sys/dev/hpc/hpckbd.c |  9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diffs (30 lines):

diff -r 93b8771a47fd -r 7618d77f6f4f sys/dev/hpc/hpckbd.c
--- a/sys/dev/hpc/hpckbd.c      Tue Sep 18 11:54:01 2018 +0000
+++ b/sys/dev/hpc/hpckbd.c      Tue Sep 18 14:57:32 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: hpckbd.c,v 1.34 2018/09/18 09:09:26 uwe Exp $ */
+/*     $NetBSD: hpckbd.c,v 1.35 2018/09/18 14:57:32 uwe Exp $ */
 
 /*-
  * Copyright (c) 1999-2001 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hpckbd.c,v 1.34 2018/09/18 09:09:26 uwe Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hpckbd.c,v 1.35 2018/09/18 14:57:32 uwe Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -280,9 +280,8 @@
         * is a hint as to what is wrong.  This actually ends up modifying
         * initialized data which is marked "const".
         *
-        * The reason we get away with it here is that on sh3 kernel
-        * is directly mapped. For mips, read-only data is mapped
-        * read/write at the moment.
+        * The reason we get away with it here is that on sh3 and mips
+        * the kernel is directly mapped.
         */
        desc = (struct wscons_keydesc *)__UNCONST(hpckbd_keymapdata.keydesc);
        for (i = 0; desc[i].name != 0; i++) {



Home | Main Index | Thread Index | Old Index