2008-09-22 Joel Sherrill <joel.sherrill@oarcorp.com>

* startup/bspreset.c: New file.
This commit is contained in:
Joel Sherrill
2008-09-22 21:53:54 +00:00
parent 95ef82cb3c
commit 72798eef80
12 changed files with 151 additions and 0 deletions

View File

@@ -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

View 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");
}

View File

@@ -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

View 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");
}

View File

@@ -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

View 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();
}

View File

@@ -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

View 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);
}

View File

@@ -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,

View 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... */
}

View File

@@ -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

View 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();
}