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 No need to disable translation tabl...



details:   https://anonhg.NetBSD.org/src/rev/a863f2255ed5
branches:  trunk
changeset: 956534:a863f2255ed5
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sun Nov 01 10:58:59 2020 +0000

description:
No need to disable translation table walks in pmap_activate().

diffstat:

 sys/arch/aarch64/aarch64/pmap.c |  9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)

diffs (30 lines):

diff -r 9206dd6f3b13 -r a863f2255ed5 sys/arch/aarch64/aarch64/pmap.c
--- a/sys/arch/aarch64/aarch64/pmap.c   Sun Nov 01 10:56:08 2020 +0000
+++ b/sys/arch/aarch64/aarch64/pmap.c   Sun Nov 01 10:58:59 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.93 2020/10/22 07:34:18 skrll Exp $  */
+/*     $NetBSD: pmap.c,v 1.94 2020/11/01 10:58:59 jmcneill Exp $       */
 
 /*
  * Copyright (c) 2017 Ryo Shimizu <ryo%nerv.org@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.93 2020/10/22 07:34:18 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.94 2020/11/01 10:58:59 jmcneill Exp $");
 
 #include "opt_arm_debug.h"
 #include "opt_ddb.h"
@@ -1439,11 +1439,6 @@
 
        UVMHIST_LOG(pmaphist, "lwp=%p (pid=%d)", l, l->l_proc->p_pid, 0, 0);
 
-       /* Disable translation table walks using TTBR0 */
-       tcr = reg_tcr_el1_read();
-       reg_tcr_el1_write(tcr | TCR_EPD0);
-       isb();
-
        /* XXX: allocate asid, and regenerate if needed */
        if (pm->pm_asid == -1)
                pm->pm_asid = l->l_proc->p_pid;



Home | Main Index | Thread Index | Old Index