Module Name:    src
Committed By:   skrll
Date:           Tue Aug 11 19:46:56 UTC 2020

Modified Files:
        src/sys/arch/aarch64/aarch64: db_interface.c

Log Message:
Improve a comment


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/aarch64/aarch64/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/aarch64/aarch64/db_interface.c
diff -u src/sys/arch/aarch64/aarch64/db_interface.c:1.8 src/sys/arch/aarch64/aarch64/db_interface.c:1.9
--- src/sys/arch/aarch64/aarch64/db_interface.c:1.8	Sun Aug  2 06:58:16 2020
+++ src/sys/arch/aarch64/aarch64/db_interface.c	Tue Aug 11 19:46:56 2020
@@ -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 <r...@nerv.org>
@@ -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 @@ db_write_text(vaddr_t addr, size_t size,
 		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();

Reply via email to