Add missing reset cause bit.

This commit is contained in:
Eric Norum
2006-03-24 20:07:57 +00:00
parent 23d25184d7
commit 84572474fe
2 changed files with 5 additions and 0 deletions

View File

@@ -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>
* startup/linkcmds: Add sections required by newer gcc versions.

View File

@@ -554,6 +554,7 @@ rtems_bsp_reset_cause(char *buf, size_t capacity)
for (i = 0, bit = 0x80 ; bit != 0 ; bit >>= 1) {
if (rsr & 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_WDR: cp = "Watchdog reset"; break;
case MCF5282_RESET_RSR_POR: cp = "Power-on reset"; break;