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 Use full system DSB ops for bs barr...



details:   https://anonhg.NetBSD.org/src/rev/809e4cee3730
branches:  trunk
changeset: 957895:809e4cee3730
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Mon Dec 14 11:42:44 2020 +0000

description:
Use full system DSB ops for bs barrier.

diffstat:

 sys/arch/aarch64/aarch64/bus_space.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (35 lines):

diff -r 44f3516f0a12 -r 809e4cee3730 sys/arch/aarch64/aarch64/bus_space.c
--- a/sys/arch/aarch64/aarch64/bus_space.c      Mon Dec 14 11:16:33 2020 +0000
+++ b/sys/arch/aarch64/aarch64/bus_space.c      Mon Dec 14 11:42:44 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bus_space.c,v 1.12 2020/12/14 11:16:33 jmcneill Exp $ */
+/* $NetBSD: bus_space.c,v 1.13 2020/12/14 11:42:44 jmcneill Exp $ */
 
 /*
  * Copyright (c) 2017 Ryo Shimizu <ryo%nerv.org@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: bus_space.c,v 1.12 2020/12/14 11:16:33 jmcneill Exp $");
+__KERNEL_RCSID(1, "$NetBSD: bus_space.c,v 1.13 2020/12/14 11:42:44 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -615,13 +615,13 @@
 
        switch (flags) {
        case BUS_SPACE_BARRIER_READ:
-               dsb(ishld);
+               dsb(ld);
                break;
        case BUS_SPACE_BARRIER_WRITE:
-               dsb(ishst);
+               dsb(st);
                break;
        case BUS_SPACE_BARRIER_READ|BUS_SPACE_BARRIER_WRITE:
-               dsb(ish);
+               dsb(sy);
                break;
        }
 }



Home | Main Index | Thread Index | Old Index