Changeset 76a51c68 in rtems


Ignore:
Timestamp:
Jan 13, 2016, 1:07:41 PM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
e1eeb883
Parents:
b32a9cd
git-author:
Sebastian Huber <sebastian.huber@…> (01/13/16 13:07:41)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/19/16 07:36:19)
Message:

bsps/arm: Copy vector table only if necessary

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/shared/armv7m/irq/armv7m-irq.c

    rb32a9cd r76a51c68  
    4343    (ARMV7M_Exception_handler *) bsp_vector_table_begin;
    4444
    45   memcpy(
    46     vector_table,
    47     bsp_start_vector_table_begin,
    48     (size_t) bsp_vector_table_size
    49   );
     45  if (bsp_vector_table_begin != bsp_start_vector_table_begin) {
     46    memcpy(
     47      vector_table,
     48      bsp_start_vector_table_begin,
     49      (size_t) bsp_vector_table_size
     50    );
     51  }
    5052
    5153  for (i = BSP_INTERRUPT_VECTOR_MIN; i <= BSP_INTERRUPT_VECTOR_MAX; ++i) {
Note: See TracChangeset for help on using the changeset viewer.