4.104.115
Last change
on this file since 72510eb2 was
72510eb2,
checked in by Joel Sherrill <joel.sherrill@…>, on 05/08/09 at 18:12:31
|
2009-05-08 Kate Feng <feng1@…>
- include/bsp.h, start/start.S, startup/bspstart.c:
added CONFIGURE_MALLOC_BSP_SUPPORTS_SBRK in bsp.h.
removed BSP_INIT_STACK_SIZE in bsp.h -- it uses stack defined
by the linker script (shared/startup/linkcmds) for the initial
stack.
replaced rtems_end+4096 with stack in start.S
Removed legacy code in bspstart.c (inherited from old mvme2307 BSP
but not relevant to this one) that tested trapping
into PPCBug.
Changed ConfVPD_buff[] to be static and added ReadConfVPD_buf() in
bspstart.c
|
-
Property mode set to
100644
|
File size:
521 bytes
|
Line | |
---|
1 | /* Copyright 2003, Shuchen Kate Feng <feng1@bnl.gov>, |
---|
2 | * NSLS,Brookhaven National Laboratory |
---|
3 | * |
---|
4 | */ |
---|
5 | |
---|
6 | #include <rtems.h> |
---|
7 | #include <bsp.h> |
---|
8 | #include <rtems/bspIo.h> |
---|
9 | #include <libcpu/io.h> |
---|
10 | #include <libcpu/stackTrace.h> |
---|
11 | |
---|
12 | void bsp_reset() |
---|
13 | { |
---|
14 | |
---|
15 | printk("Printing a stack trace for your convenience :-)\n"); |
---|
16 | CPU_print_stack(); |
---|
17 | |
---|
18 | printk("RTEMS terminated; Rebooting ...\n"); |
---|
19 | /* Mvme5500 board reset : 2004 S. Kate Feng <feng1@bnl.gov> */ |
---|
20 | out_8((volatile unsigned char*) (GT64x60_DEV1_BASE +2), 0x80); |
---|
21 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.