Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/aarch64/aarch64 Improve a comment



details:   https://anonhg.NetBSD.org/src/rev/9dd58aee7bc9
branches:  trunk
changeset: 937216:9dd58aee7bc9
user:      skrll <skrll%NetBSD.org@localhost>
date:      Tue Aug 11 19:46:56 2020 +0000

description:
Improve a comment

diffstat:

 sys/arch/aarch64/aarch64/db_interface.c |  13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diffs (34 lines):

diff -r 7dc09900597d -r 9dd58aee7bc9 sys/arch/aarch64/aarch64/db_interface.c
--- a/sys/arch/aarch64/aarch64/db_interface.c   Tue Aug 11 18:52:03 2020 +0000
+++ b/sys/arch/aarch64/aarch64/db_interface.c   Tue Aug 11 19:46:56 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_interface.c,v 1.8 2020/08/02 06:58:16 maxv Exp $ */
+/* $NetBSD: db_interface.c,v 1.9 2020/08/11 19:46:56 skrll Exp $ */
 
 /*
  * Copyright (c) 2017 Ryo Shimizu <ryo%nerv.org@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.8 2020/08/02 06:58:16 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.9 2020/08/11 19:46:56 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -121,10 +121,11 @@
                pte = *ptep;
 
                /*
-                * change to writable. require to keep execute permission.
-                * because if the block/page to which the target address belongs and
-                * the block/page to which this function itself belongs are the same,
-                * if drop PROT_EXECUTE and TLB invalidate, the program stop...
+                * change to writable.  it is required to keep execute permission.
+                * because if the block/page to which the target address belongs is
+                * the same as the block/page to which this function belongs, then
+                * if PROT_EXECUTE is dropped and TLB is invalidated, the program
+                * will stop...
                 */
                pmap_kvattr(addr, VM_PROT_EXECUTE|VM_PROT_READ|VM_PROT_WRITE);
                aarch64_tlbi_all();



Home | Main Index | Thread Index | Old Index