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 oops, fix incorrect usage of daif_e...



details:   https://anonhg.NetBSD.org/src/rev/08a43ce59a7d
branches:  trunk
changeset: 969810:08a43ce59a7d
user:      ryo <ryo%NetBSD.org@localhost>
date:      Mon Mar 02 08:39:36 2020 +0000

description:
oops, fix incorrect usage of daif_enable() in my previous commit.

diffstat:

 sys/arch/aarch64/aarch64/pmap.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 0b4c6b2e374f -r 08a43ce59a7d sys/arch/aarch64/aarch64/pmap.c
--- a/sys/arch/aarch64/aarch64/pmap.c   Mon Mar 02 06:38:06 2020 +0000
+++ b/sys/arch/aarch64/aarch64/pmap.c   Mon Mar 02 08:39:36 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.66 2020/02/29 21:34:37 ryo Exp $    */
+/*     $NetBSD: pmap.c,v 1.67 2020/03/02 08:39:36 ryo 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.66 2020/02/29 21:34:37 ryo Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.67 2020/03/02 08:39:36 ryo Exp $");
 
 #include "opt_arm_debug.h"
 #include "opt_ddb.h"
@@ -776,7 +776,7 @@
                        reg_s1e1r_write(va);
                        __asm __volatile ("isb");
                        uint64_t par = reg_par_el1_read();
-                       daif_enable(s);
+                       reg_daif_write(s);
 
                        if (par & PAR_F)
                                return false;



Home | Main Index | Thread Index | Old Index