Changeset b442032 in rtems


Ignore:
Timestamp:
Oct 23, 2014, 8:11:59 AM (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
866a6fc
Parents:
46dde0fc
git-author:
Sebastian Huber <sebastian.huber@…> (10/23/14 08:11:59)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/23/14 08:21:41)
Message:

bsp/leon3: Fix LEON3_mp_irq definition

Provide it also if RTEMS_MULTIPROCESSING is defined.

Location:
c/src/lib/libbsp/sparc/leon3
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/sparc/leon3/include/bsp.h

    r46dde0fc rb442032  
    221221extern void BSP_shared_interrupt_mask(int irq);
    222222
     223#if defined(RTEMS_SMP) || defined(RTEMS_MULTIPROCESSING)
    223224/* Irq used by the shared memory driver and for inter-processor interrupts.
    224225 * The variable is weakly linked. Redefine the variable in your application
    225226 * to override the BSP default.
    226  * See startup/bspsmp.c for the default value.
    227227 */
    228228extern const unsigned char LEON3_mp_irq;
     229#endif
    229230
    230231#ifdef RTEMS_SMP
  • c/src/lib/libbsp/sparc/leon3/startup/bspsmp.c

    r46dde0fc rb442032  
    2222#include <rtems/score/smpimpl.h>
    2323#include <stdlib.h>
    24 
    25 /* Irq used by shared memory driver and for inter-processor interrupts.
    26  * Can be overridden by being defined in the application.
    27  */
    28 const unsigned char LEON3_mp_irq __attribute__((weak)) = 14;
    2924
    3025#if !defined(__leon__) || defined(RTEMS_PARAVIRT)
  • c/src/lib/libbsp/sparc/leon3/startup/bspstart.c

    r46dde0fc rb442032  
    2121#include <rtems/bspIo.h>
    2222#include <bsp/bootcard.h>
     23
     24#if defined(RTEMS_SMP) || defined(RTEMS_MULTIPROCESSING)
     25/* Irq used by shared memory driver and for inter-processor interrupts.
     26 * Can be overridden by being defined in the application.
     27 */
     28const unsigned char LEON3_mp_irq __attribute__((weak)) = 14;
     29#endif
    2330
    2431/*
Note: See TracChangeset for help on using the changeset viewer.