Changeset bd75e58 in rtems


Ignore:
Timestamp:
Nov 13, 2012, 11:20:59 AM (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
2d561b9
Parents:
6c454104
git-author:
Sebastian Huber <sebastian.huber@…> (11/13/12 11:20:59)
git-committer:
Sebastian Huber <sebastian.huber@…> (12/03/12 12:17:09)
Message:

bsp/mpc55xx: Fix INTC initialization

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/powerpc/mpc55xx/irq/irq.c

    r6c454104 rbd75e58  
    136136}
    137137
    138 rtems_status_code bsp_interrupt_facility_initialize()
     138rtems_status_code bsp_interrupt_facility_initialize(void)
    139139{
     140        rtems_vector_number vector;
     141
    140142        /* Install exception handler */
    141143        if (ppc_exc_set_handler( ASM_EXT_VECTOR, mpc55xx_external_exception_handler)) {
     
    144146
    145147        /* Initialize interrupt controller */
     148
     149        /* Disable all interrupts */
     150        for (vector = MPC55XX_IRQ_MIN; vector <= MPC55XX_IRQ_MAX; ++vector) {
     151                INTC.PSR [vector].B.PRI = MPC55XX_INTC_DISABLED_PRIORITY;
     152        }
    146153
    147154        /* Software vector mode */
Note: See TracChangeset for help on using the changeset viewer.