mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-27 06:58:19 +00:00
2008-09-22 Joel Sherrill <joel.sherrill@oarcorp.com>
* startup/bspreset.c: New file.
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
2008-09-22 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* startup/bspreset.c: New file.
|
||||
|
||||
2008-09-22 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* Makefile.am, configure.ac, console/uart.c: Use standardized
|
||||
|
||||
16
c/src/lib/libbsp/arm/edb7312/startup/bspreset.c
Normal file
16
c/src/lib/libbsp/arm/edb7312/startup/bspreset.c
Normal file
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* 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>
|
||||
|
||||
void bsp_reset(void)
|
||||
{
|
||||
asm volatile ("b _start");
|
||||
}
|
||||
@@ -1,3 +1,7 @@
|
||||
2008-09-22 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* startup/bspreset.c: New file.
|
||||
|
||||
2008-09-22 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* Makefile.am, configure.ac, console/console.c: Use standardized
|
||||
|
||||
16
c/src/lib/libbsp/arm/gba/startup/bspreset.c
Normal file
16
c/src/lib/libbsp/arm/gba/startup/bspreset.c
Normal file
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* 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 <gba.h>
|
||||
|
||||
void bsp_reset(void)
|
||||
{
|
||||
asm volatile ("ldr r0, =_gba_reset");
|
||||
asm volatile ("bx r0");
|
||||
}
|
||||
@@ -1,3 +1,7 @@
|
||||
2008-09-22 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* startup/bspreset.c: New file.
|
||||
|
||||
2008-09-22 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* Makefile.am, configure.ac: Use standardized bsp_cleanup() which can
|
||||
|
||||
19
c/src/lib/libbsp/arm/nds/startup/bspreset.c
Normal file
19
c/src/lib/libbsp/arm/nds/startup/bspreset.c
Normal file
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
* RTEMS for Nintendo DS platform initialization.
|
||||
* Copyright (c) 2008 by Matthieu Bucchianeri <mbucchia@gmail.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 <bsp/bootcard.h>
|
||||
#include <nds.h>
|
||||
|
||||
void bsp_reset(void)
|
||||
{
|
||||
swiSoftReset();
|
||||
}
|
||||
@@ -1,3 +1,7 @@
|
||||
2008-09-22 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* startup/bspreset.c: New file.
|
||||
|
||||
2008-09-22 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* Makefile.am, configure.ac, console/uart.c, startup/bspstart.c: Use
|
||||
|
||||
32
c/src/lib/libbsp/arm/rtl22xx/startup/bspreset.c
Normal file
32
c/src/lib/libbsp/arm/rtl22xx/startup/bspreset.c
Normal file
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* Copyright (c) 2007 by Ray Xu <rayx.cn@gmail.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 <lpc22xx.h>
|
||||
|
||||
void bsp_reset(void)
|
||||
{
|
||||
rtems_interrupt_level level;
|
||||
|
||||
rtems_interrupt_disable(level);
|
||||
|
||||
#ifdef __thumb__
|
||||
int tmp;
|
||||
asm volatile (" .code 16 \n" \
|
||||
"ldr %[tmp], =_start \n" \
|
||||
"bx %[tmp] \n" \
|
||||
"nop \n" \
|
||||
: [tmp]"=&r" (tmp) );
|
||||
#else
|
||||
asm volatile ("b _start");
|
||||
#endif
|
||||
|
||||
while(1);
|
||||
}
|
||||
@@ -1,3 +1,7 @@
|
||||
2008-09-22 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* startup/bspreset.c: New file.
|
||||
|
||||
2008-09-22 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* Makefile.am, configure.ac, console/inch.c, console/keyboard.c,
|
||||
|
||||
20
c/src/lib/libbsp/i386/pc386/startup/bspreset.c
Normal file
20
c/src/lib/libbsp/i386/pc386/startup/bspreset.c
Normal file
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
* COPYRIGHT (c) 1989-2008.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* 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 <rtems.h>
|
||||
#include <bsp.h>
|
||||
#include <bsp/bootcard.h>
|
||||
|
||||
void bsp_reset(void)
|
||||
{
|
||||
/* shutdown and reboot */
|
||||
outport_byte(0x64, 0xFE); /* use keyboard controler to do the job... */
|
||||
}
|
||||
@@ -1,3 +1,7 @@
|
||||
2008-09-22 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* startup/bspreset.c: New file.
|
||||
|
||||
2008-09-22 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* Makefile.am, configure.ac, console/console-io.c: Use standardized
|
||||
|
||||
24
c/src/lib/libbsp/mips/csb350/startup/bspreset.c
Normal file
24
c/src/lib/libbsp/mips/csb350/startup/bspreset.c
Normal file
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* COPYRIGHT (c) 1989-2008.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* 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 <rtems.h>
|
||||
#include <libcpu/au1x00.h>
|
||||
|
||||
void bsp_reset(void)
|
||||
{
|
||||
void (*reset_func)(void);
|
||||
|
||||
reset_func = (void *)0xbfc00000;
|
||||
|
||||
mips_set_sr( 0x00200000 ); /* all interrupts off, boot exception vectors */
|
||||
|
||||
/* Try to restart bootloader */
|
||||
reset_func();
|
||||
}
|
||||
Reference in New Issue
Block a user