Changeset 03b7789 in rtems for cpukit/sapi


Ignore:
Timestamp:
Apr 26, 2014, 1:09:10 PM (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
0832ca7
Parents:
a16af0b3
git-author:
Sebastian Huber <sebastian.huber@…> (04/26/14 13:09:10)
git-committer:
Sebastian Huber <sebastian.huber@…> (04/29/14 07:51:22)
Message:

score: Statically initialize _ISR_Vector_table

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/sapi/include/confdefs.h

    ra16af0b3 r03b7789  
    22852285
    22862286/**
    2287  * On architectures that use Simple Vectored Interrupts, it is RTEMS
    2288  * responsibility to allocate the vector table.  This avoids reserving
    2289  * the memory on architectures that use the Programmable Interrupt
    2290  * Controller Vectored Interrupts.
    2291  */
    2292 #if (CPU_SIMPLE_VECTORED_INTERRUPTS == TRUE)
    2293   /*
    2294    *  This is a (hopefully) temporary hack.  On the mips, the number of
    2295    *  vectors is NOT statically defined.  But it has to be statically
    2296    *  defined for this to work.  This is an issue looking for a nice
    2297    *  solution.
    2298    */
    2299   #if defined(__mips__)
    2300     #define CONFIGURE_INTERRUPT_VECTOR_TABLE \
    2301       _Configure_From_workspace( (sizeof(ISR_Handler_entry) * 256))
    2302   #else
    2303     #define CONFIGURE_INTERRUPT_VECTOR_TABLE \
    2304       _Configure_From_workspace( \
    2305         (sizeof(ISR_Handler_entry) * ISR_NUMBER_OF_VECTORS))
    2306   #endif
    2307 #else
    2308   #define CONFIGURE_INTERRUPT_VECTOR_TABLE 0
    2309 #endif
    2310 
    2311 /**
    23122287 * RTEMS uses two instance of an internal mutex class.  This accounts
    23132288 * for these mutexes.
     
    23382313#define CONFIGURE_MEMORY_FOR_SYSTEM_OVERHEAD \
    23392314  ( CONFIGURE_MEMORY_FOR_IDLE_TASK +                /* IDLE and stack */ \
    2340     CONFIGURE_INTERRUPT_VECTOR_TABLE +             /* interrupt vectors */ \
    23412315    CONFIGURE_INTERRUPT_STACK_MEMORY +             /* interrupt stack */ \
    23422316    CONFIGURE_API_MUTEX_MEMORY                     /* allocation mutex */ \
     
    27562730
    27572731    /* System overhead pieces */
    2758     uint32_t INTERRUPT_VECTOR_TABLE;
    27592732    uint32_t INTERRUPT_STACK_MEMORY;
    27602733    uint32_t MEMORY_FOR_IDLE_TASK;
     
    28112784
    28122785    /* System overhead pieces */
    2813     CONFIGURE_INTERRUPT_VECTOR_TABLE,
    28142786    CONFIGURE_INTERRUPT_STACK_MEMORY,
    28152787    CONFIGURE_MEMORY_FOR_IDLE_TASK,
Note: See TracChangeset for help on using the changeset viewer.