Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/cortex Add missing insn barrier
details: https://anonhg.NetBSD.org/src/rev/6e8354992310
branches: trunk
changeset: 1023819:6e8354992310
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sun Sep 26 20:55:15 2021 +0000
description:
Add missing insn barrier
diffstat:
sys/arch/arm/cortex/gic_splfuncs.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r c2a980e3a5e3 -r 6e8354992310 sys/arch/arm/cortex/gic_splfuncs.c
--- a/sys/arch/arm/cortex/gic_splfuncs.c Sun Sep 26 20:48:10 2021 +0000
+++ b/sys/arch/arm/cortex/gic_splfuncs.c Sun Sep 26 20:55:15 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gic_splfuncs.c,v 1.3 2021/09/20 21:05:14 jmcneill Exp $ */
+/* $NetBSD: gic_splfuncs.c,v 1.4 2021/09/26 20:55:15 jmcneill Exp $ */
/*-
* Copyright (c) 2021 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gic_splfuncs.c,v 1.3 2021/09/20 21:05:14 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gic_splfuncs.c,v 1.4 2021/09/26 20:55:15 jmcneill Exp $");
#include <sys/param.h>
#include <sys/atomic.h>
@@ -93,6 +93,7 @@
*/
if (__predict_true(ci->ci_intr_depth == 0)) {
ci->ci_splx_savedipl = newipl;
+ __insn_barrier();
ci->ci_splx_restart = &&restart;
__insn_barrier();
checkhwpl:
Home |
Main Index |
Thread Index |
Old Index