Changeset 02632e8 in rtems for c/src/lib/libcpu/arm


Ignore:
Timestamp:
Jul 25, 2013, 8:34:50 AM (7 years ago)
Author:
Pavel Pisa <ppisa@…>
Branches:
4.11, master
Children:
1f4321b
Parents:
88c74ab
git-author:
Pavel Pisa <ppisa@…> (07/25/13 08:34:50)
git-committer:
Sebastian Huber <sebastian.huber@…> (07/26/13 09:55:47)
Message:

bsp/csb336: mc9328mxl correct AITC access in bsp_interrupt_dispatch.

The original version is missing void and result is that (*x >> 16) is
optimized to ldh rX,[rY]. But it is not allowed/supported to access
bus/address range used by AITC by other than 32 bit wide accesses
and 16-bit access results in the data abort exception.
The corrected version works on real hardware and is even
more readable.

Signed-off-by: Pavel Pisa <ppisa@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/arm/mc9328mxl/irq/irq.c

    r88c74ab r02632e8  
    2121void bsp_interrupt_dispatch(void)
    2222{
    23   rtems_vector_number vector = *((uint32_t *) 0x00223040) >> 16;
     23
     24  rtems_vector_number vector = MC9328MXL_AITC_NIVECSR >> 16;
    2425
    2526  bsp_interrupt_handler_dispatch(vector);
Note: See TracChangeset for help on using the changeset viewer.