mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-27 06:58:19 +00:00
2009-12-08 Eric Norum <wenorum@lbl.gov>
PR 1479/bsps * fatal/bspfatal.c: Complete strcat conversion.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2009-12-08 Eric Norum <wenorum@lbl.gov>
|
||||
|
||||
PR 1479/bsps
|
||||
* fatal/bspfatal.c: Complete strcat conversion.
|
||||
|
||||
2009-10-21 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* make/custom/mvme167.cfg: Remove RTEMS_BSP_FAMILY.
|
||||
|
||||
@@ -46,46 +46,39 @@ User_extensions_routine bsp_fatal_error_occurred(
|
||||
char strbuf[254]; /* In case count is bumped up by one by 167Bug */
|
||||
} my_p_str;
|
||||
|
||||
my_p_str.index = 0;
|
||||
my_p_str.index += strcat(
|
||||
my_p_str.strbuf + my_p_str.index,
|
||||
strcat(my_p_str.strbuf,
|
||||
"\r\nRTEMS Fatal Error Occurred:\r\n the_source = " );
|
||||
|
||||
switch ( the_source ) {
|
||||
case INTERNAL_ERROR_CORE:
|
||||
my_p_str.index += strcat(
|
||||
my_p_str.strbuf + my_p_str.index,
|
||||
strcat(my_p_str.strbuf,
|
||||
"INTERNAL_ERROR_CORE\r\n is_internal = " );
|
||||
break;
|
||||
|
||||
case INTERNAL_ERROR_RTEMS_API:
|
||||
my_p_str.index += strcat(
|
||||
my_p_str.strbuf + my_p_str.index,
|
||||
strcat(my_p_str.strbuf,
|
||||
"INTERNAL_ERROR_RTEMS_API\r\n is_internal = " );
|
||||
break;
|
||||
|
||||
case INTERNAL_ERROR_POSIX_API:
|
||||
my_p_str.index += strcat(
|
||||
my_p_str.strbuf + my_p_str.index,
|
||||
strcat(my_p_str.strbuf,
|
||||
"INTERNAL_ERROR_POSIX_API\r\n is_internal = " );
|
||||
break;
|
||||
|
||||
default:
|
||||
my_p_str.index += strcat(
|
||||
my_p_str.strbuf + my_p_str.index,
|
||||
strcat(my_p_str.strbuf,
|
||||
"UNKNOWN\r\n is_internal = " );
|
||||
break;
|
||||
}
|
||||
|
||||
if ( is_internal )
|
||||
my_p_str.index += strcat(
|
||||
my_p_str.strbuf + my_p_str.index,
|
||||
strcat(my_p_str.strbuf,
|
||||
"TRUE\r\n the_error = 0x|10,8|\r\n" );
|
||||
else
|
||||
my_p_str.index += strcat(
|
||||
my_p_str.strbuf + my_p_str.index,
|
||||
strcat(my_p_str.strbuf,
|
||||
"FALSE\r\n the_error = 0x|10,8|\r\n" );
|
||||
|
||||
my_p_str.index = strlen(my_p_str.strbuf);
|
||||
lcsr->intr_ena = 0; /* disable interrupts */
|
||||
m68k_set_vbr(0xFFE00000); /* restore 167Bug vectors */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user