Changeset c43071f in rtems


Ignore:
Timestamp:
Jun 25, 2019, 8:43:55 AM (8 weeks ago)
Author:
Chris Johns <chrisj@…>
Branches:
master
Children:
5803f37
Parents:
9b858ee
git-author:
Chris Johns <chrisj@…> (06/25/19 08:43:55)
git-committer:
Chris Johns <chrisj@…> (06/27/19 23:01:27)
Message:

arm: Return the current handler from arm_cp15_set_exception_handler

Closes #3762

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • bsps/arm/shared/cp15/arm-cp15-set-exception-handler.c

    r9b858ee rc43071f  
    1717#include <bsp/linker-symbols.h>
    1818
    19 void arm_cp15_set_exception_handler(
     19void* arm_cp15_set_exception_handler(
    2020  Arm_symbolic_exception_name exception,
    2121  void (*handler)(void)
    2222)
    2323{
     24  uint32_t current_handler = 0;
     25
    2426  if ((unsigned) exception < MAX_EXCEPTIONS) {
    2527    uint32_t *cpu_table = (uint32_t *) 0 + MAX_EXCEPTIONS;
    2628    uint32_t *mirror_table = (uint32_t *) bsp_vector_table_begin + MAX_EXCEPTIONS;
    27     uint32_t current_handler = mirror_table[exception];
     29
     30    current_handler = mirror_table[exception];
    2831
    2932    if (current_handler != (uint32_t) handler) {
     
    5457    }
    5558  }
     59
     60  return (void*) current_handler;
    5661}
  • cpukit/score/cpu/arm/include/libcpu/arm-cp15.h

    r9b858ee rc43071f  
    22472247);
    22482248
    2249 void arm_cp15_set_exception_handler(
     2249/**
     2250 * @brief Sets the @a exception @a handler in the vector table.
     2251 *
     2252 * @return Previous handler.
     2253 */
     2254void* arm_cp15_set_exception_handler(
    22502255  Arm_symbolic_exception_name exception,
    22512256  void (*handler)(void)
Note: See TracChangeset for help on using the changeset viewer.