forked from Imagelibrary/rtems
Add missing reset cause bit.
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
2006-03-24 Eric Norum <norume@aps.anl.gov>
|
||||||
|
|
||||||
|
* startup/bspstart.c: Add missing reset-cause bit
|
||||||
|
|
||||||
2006-02-08 Joel Sherrill <joel@OARcorp.com>
|
2006-02-08 Joel Sherrill <joel@OARcorp.com>
|
||||||
|
|
||||||
* startup/linkcmds: Add sections required by newer gcc versions.
|
* startup/linkcmds: Add sections required by newer gcc versions.
|
||||||
|
|||||||
@@ -554,6 +554,7 @@ rtems_bsp_reset_cause(char *buf, size_t capacity)
|
|||||||
for (i = 0, bit = 0x80 ; bit != 0 ; bit >>= 1) {
|
for (i = 0, bit = 0x80 ; bit != 0 ; bit >>= 1) {
|
||||||
if (rsr & bit) {
|
if (rsr & bit) {
|
||||||
switch (bit) {
|
switch (bit) {
|
||||||
|
case MCF5282_RESET_RSR_LVD: cp = "Low voltage"; break;
|
||||||
case MCF5282_RESET_RSR_SOFT: cp = "Software reset"; break;
|
case MCF5282_RESET_RSR_SOFT: cp = "Software reset"; break;
|
||||||
case MCF5282_RESET_RSR_WDR: cp = "Watchdog reset"; break;
|
case MCF5282_RESET_RSR_WDR: cp = "Watchdog reset"; break;
|
||||||
case MCF5282_RESET_RSR_POR: cp = "Power-on reset"; break;
|
case MCF5282_RESET_RSR_POR: cp = "Power-on reset"; break;
|
||||||
|
|||||||
Reference in New Issue
Block a user