summaryrefslogblamecommitdiffstats
path: root/c/src/lib/libbsp/arm/edb7312/startup/bspreset.c
blob: 8e7bbffdfc266449abd157114f201cd54f42bd0a (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
  
                                                              








                                                           
                   


                    
                  

                                                                       

                              
                                
      
 
/*
 *  Copyright (c) 2002 by Jay Monkman <jtm@smoothsmoothie.com>
 *
 *  The license and distribution terms for this file may be
 *  found in the file LICENSE in this distribution or at
 *  http://www.rtems.com/license/LICENSE.
 *
 *  $Id$
 */

#include <bsp.h>
#include <ep7312.h>

void bsp_reset(void)
{
#if ON_SKYEYE == 1
  #define SKYEYE_MAGIC_ADDRESS (*(volatile unsigned int *)(0xb0000000))

  SKYEYE_MAGIC_ADDRESS = 0xff;
#else
  __asm__ volatile ("b _start");
#endif
}