Changeset d62dfc7 in rtems


Ignore:
Timestamp:
Nov 24, 2015, 7:33:52 AM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
f6a1ef9
Parents:
9394aa5e
Message:

bsp/altera-cyclone-v: Add fatal extension handler

Location:
c/src/lib/libbsp/arm/altera-cyclone-v
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/altera-cyclone-v/Makefile.am

    r9394aa5e rd62dfc7  
    152152# Shared
    153153libbsp_a_SOURCES += ../../shared/bootcard.c
    154 libbsp_a_SOURCES += ../../shared/bspclean.c
    155154libbsp_a_SOURCES += ../../shared/bspgetworkarea.c
    156155libbsp_a_SOURCES += ../../shared/bsplibc.c
     
    168167
    169168# Startup
     169libbsp_a_SOURCES += startup/bspclean.c
    170170libbsp_a_SOURCES += startup/bspreset.c
    171171libbsp_a_SOURCES += startup/bspstart.c
  • c/src/lib/libbsp/arm/altera-cyclone-v/startup/bspreset.c

    r9394aa5e rd62dfc7  
    1515#include <bsp/bootcard.h>
    1616#include <bsp/alt_reset_manager.h>
    17 #include "socal/alt_rstmgr.h"
    18 #include "socal/hps.h"
    1917
    2018void bsp_reset(void)
    2119{
    22   uint32_t           self_cpu  = rtems_get_current_processor();
    23   volatile uint32_t *mpumodrst = ALT_RSTMGR_MPUMODRST_ADDR;
    24  
    25   if( self_cpu == 0 ) {
    26     /* Reset CPU1 */
    27     (*mpumodrst) |= ALT_RSTMGR_MPUMODRST_CPU1_SET_MSK;
    28    
    29     /* Simply call the reset method from alteras HWLIB */
    30     (void) alt_reset_cold_reset();
    31   } else {
    32     /* Keep CPU1 waiting until it gets reset by CPU0 */
    33     while ( true ) {
    34       __asm__ volatile ("wfi");
    35     }
    36   }
     20  alt_reset_cold_reset();
    3721}
Note: See TracChangeset for help on using the changeset viewer.