Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/arm32 Now that we can... mark kernel text as no...



details:   https://anonhg.NetBSD.org/src/rev/81aaea9a2193
branches:  trunk
changeset: 354969:81aaea9a2193
user:      skrll <skrll%NetBSD.org@localhost>
date:      Thu Jul 06 15:09:17 2017 +0000

description:
Now that we can... mark kernel text as non-writable on MMUs that support
it.

diffstat:

 sys/arch/arm/arm32/arm32_kvminit.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r acca2c53087c -r 81aaea9a2193 sys/arch/arm/arm32/arm32_kvminit.c
--- a/sys/arch/arm/arm32/arm32_kvminit.c        Thu Jul 06 15:07:56 2017 +0000
+++ b/sys/arch/arm/arm32/arm32_kvminit.c        Thu Jul 06 15:09:17 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: arm32_kvminit.c,v 1.39 2017/07/01 09:18:31 skrll Exp $ */
+/*     $NetBSD: arm32_kvminit.c,v 1.40 2017/07/06 15:09:17 skrll Exp $ */
 
 /*
  * Copyright (c) 2002, 2003, 2005  Genetec Corporation.  All rights reserved.
@@ -124,7 +124,7 @@
 #include "opt_multiprocessor.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: arm32_kvminit.c,v 1.39 2017/07/01 09:18:31 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: arm32_kvminit.c,v 1.40 2017/07/06 15:09:17 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -687,7 +687,7 @@
        text.pv_pa = bmi->bmi_kernelstart;
        text.pv_va = KERN_PHYSTOV(bmi, bmi->bmi_kernelstart);
        text.pv_size = textsize;
-       text.pv_prot = VM_PROT_READ|VM_PROT_WRITE|VM_PROT_EXECUTE;
+       text.pv_prot = VM_PROT_READ | VM_PROT_EXECUTE;
        text.pv_cache = PTE_CACHE;
 
 #ifdef VERBOSE_INIT_ARM



Home | Main Index | Thread Index | Old Index