This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
Re: thumb support
- From: daniel dot neri at sigicom dot se (Daniel Néri)
- To: ecos-patches at sources dot redhat dot com
- Date: Sat, 26 Apr 2003 12:32:16 +0000
- Subject: Re: thumb support
- Cancel-lock: sha1:XLCEA+EtHCpdgMTI8xbdxS9kJxA=
- Organization: Sigicom AB, Stockholm, Sweden
- References: <20030413125835.91B82EC6F1@delenn.bartv.net>
In vectors.S, there is a call to hal_spurious_IRQ that is (still) not
thumb-aware. Proposed fix below.
Best wishes,
--Daniel
--- hal/arm/arch/current/ChangeLog 2003/04/15 12:47:03 1.1.1.5
+++ hal/arm/arch/current/ChangeLog 2003/04/26 12:18:03
@@ -1,6 +1,11 @@
+2003-04-26 Daniel Néri <daniel dot neri at sigicom dot se>
+
+ * vectors.S (handle_IRQ_or_FIQ):
+ Use thumb-aware call to hal_spurious_IRQ.
+
2003-04-13 Bart Veer <bartv at ecoscentric dot com>
* src/vectors.S (start): fix build problem with -mthumb
2003-03-11 Mark Salter <msalter at redhat dot com>
--- hal/arm/arch/current/src/vectors.S 2003/04/15 12:47:03 1.1.1.2
+++ hal/arm/arch/current/src/vectors.S 2003/04/26 12:13:32 1.4
@@ -804,11 +805,13 @@ handle_IRQ_or_FIQ:
cmp r0,#CYGNUM_HAL_INTERRUPT_NONE // spurious interrupt
bne 10f
#ifndef CYGIMP_HAL_COMMON_INTERRUPTS_IGNORE_SPURIOUS
mov r0,v6 // register frame
- bl hal_spurious_IRQ
+ ldr r1,=hal_spurious_IRQ
+ mov lr,pc
+ bx r1
#endif // CYGIMP_HAL_COMMON_INTERRUPTS_IGNORE_SPURIOUS
b spurious_IRQ
10: ldr r1,.hal_interrupt_data
ldr r1,[r1,v1,lsl #2] // handler data