Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm26/arm26 Add fiq_downgrade_dont_disable, which d...
details: https://anonhg.NetBSD.org/src/rev/16d4d5e1e139
branches: trunk
changeset: 515350:16d4d5e1e139
user: bjh21 <bjh21%NetBSD.org@localhost>
date: Sat Sep 22 17:16:18 2001 +0000
description:
Add fiq_downgrade_dont_disable, which does what fiq_downgrade does, but
doesn't disable FIQs in the process.
diffstat:
sys/arch/arm26/arm26/fiq_util.S | 16 ++++++++++++++--
1 files changed, 14 insertions(+), 2 deletions(-)
diffs (37 lines):
diff -r c20075b9bad0 -r 16d4d5e1e139 sys/arch/arm26/arm26/fiq_util.S
--- a/sys/arch/arm26/arm26/fiq_util.S Sat Sep 22 16:46:41 2001 +0000
+++ b/sys/arch/arm26/arm26/fiq_util.S Sat Sep 22 17:16:18 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fiq_util.S,v 1.2 2001/08/21 22:47:17 bjh21 Exp $ */
+/* $NetBSD: fiq_util.S,v 1.3 2001/09/22 17:16:18 bjh21 Exp $ */
/*-
* Copyright (c) 2001 Ben Harris
@@ -29,7 +29,7 @@
#include <machine/asm.h>
-RCSID("$NetBSD: fiq_util.S,v 1.2 2001/08/21 22:47:17 bjh21 Exp $")
+RCSID("$NetBSD: fiq_util.S,v 1.3 2001/09/22 17:16:18 bjh21 Exp $")
#include <machine/memcreg.h>
#include <arch/arm26/iobus/iocreg.h>
@@ -49,6 +49,18 @@
mov r13, #1
str r13, [r12]
subs pc, r14, #4
+
+ENTRY(fiq_downgrade_dont_disable)
+ ldr r12, Lioc_base
+ ldrb r13, [r12, #(IOC_IRQMSKA << 2)]
+ orr r13, r13, #(1 <<IOC_IRQ_1)
+ strb r13, [r12, #(IOC_IRQMSKA << 2)]
+ ldr r12, Lfiq_want_downgrade
+ mov r13, #1
+ str r13, [r12]
+ subs pc, r14, #4
+
+
Lioc_base:
.word 0x03200000
Lfiq_want_downgrade:
Home |
Main Index |
Thread Index |
Old Index