This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: thumb support


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]