Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/imx Assume reads from hardware do something eve...
details: https://anonhg.NetBSD.org/src/rev/4848dc10d40b
branches: trunk
changeset: 327537:4848dc10d40b
user: skrll <skrll%NetBSD.org@localhost>
date: Mon Mar 10 09:35:18 2014 +0000
description:
Assume reads from hardware do something even if the result isn't required.
Hi htodd@!
diffstat:
sys/arch/arm/imx/imx51_tzic.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (33 lines):
diff -r 6f80b1cccb6f -r 4848dc10d40b sys/arch/arm/imx/imx51_tzic.c
--- a/sys/arch/arm/imx/imx51_tzic.c Mon Mar 10 08:45:30 2014 +0000
+++ b/sys/arch/arm/imx/imx51_tzic.c Mon Mar 10 09:35:18 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: imx51_tzic.c,v 1.5 2014/03/10 04:25:51 htodd Exp $ */
+/* $NetBSD: imx51_tzic.c,v 1.6 2014/03/10 09:35:18 skrll Exp $ */
/*-
* Copyright (c) 2010 SHIMIZU Ryo <ryo%nerv.org@localhost>
@@ -26,7 +26,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: imx51_tzic.c,v 1.5 2014/03/10 04:25:51 htodd Exp $");
+__KERNEL_RCSID(0, "$NetBSD: imx51_tzic.c,v 1.6 2014/03/10 09:35:18 skrll Exp $");
#define _INTR_PRIVATE /* for arm/pic/picvar.h */
@@ -262,10 +262,14 @@
disable_interrupts(I32_bit|F32_bit);
+ (void) INTC_READ(tzic, TZIC_INTCNTL);
INTC_WRITE(tzic, TZIC_INTCNTL, INTCNTL_NSEN_MASK|INTCNTL_NSEN|INTCNTL_EN);
+ (void) INTC_READ(tzic, TZIC_INTCNTL);
INTC_WRITE(tzic, TZIC_PRIOMASK, SW_TO_HW_IPL(IPL_NONE));
+ (void) INTC_READ(tzic, TZIC_PRIOMASK);
INTC_WRITE(tzic, TZIC_SYNCCTRL, 0x00);
+ (void) INTC_READ(tzic, TZIC_SYNCCTRL);
/* route all interrupts to IRQ. secure interrupts are for FIQ */
for (i = 0; i < 4; i++)
Home |
Main Index |
Thread Index |
Old Index