Changeset 4eeddef in rtems


Ignore:
Timestamp:
Jul 25, 2013, 8:34:50 AM (6 years ago)
Author:
Pavel Pisa <ppisa@…>
Branches:
4.10
Children:
a791d39
Parents:
833eeae
git-author:
Pavel Pisa <ppisa@…> (07/25/13 08:34:50)
git-committer:
Sebastian Huber <sebastian.huber@…> (08/19/13 08:54:02)
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

    r833eeae r4eeddef  
    2222void bsp_interrupt_dispatch(void)
    2323{
    24   rtems_vector_number vector = *((uint32_t *) 0x00223040) >> 16;
     24
     25  rtems_vector_number vector = MC9328MXL_AITC_NIVECSR >> 16;
    2526
    2627  bsp_interrupt_handler_dispatch(vector);
Note: See TracChangeset for help on using the changeset viewer.