RCS file: /usr1/CVS/rtems/c/src/lib/libbsp/m68k/mvme167/ChangeLog,v
retrieving revision 1.124
diff -u -r1.124 ChangeLog
|
|
|
| 1 | 2009-12-08 Eric Norum <wenorum@lbl.gov> |
| 2 | |
| 3 | PR 1479/bsps |
| 4 | * fatal/bspfatal.c: Complete strcat conversion. |
| 5 | |
1 | 6 | 2009-10-21 Ralf Corsépius <ralf.corsepius@rtems.org> |
2 | 7 | |
3 | 8 | * make/custom/mvme167.cfg: Remove RTEMS_BSP_FAMILY. |
RCS file: /usr1/CVS/rtems/c/src/lib/libbsp/m68k/mvme167/fatal/bspfatal.c,v
retrieving revision 1.8
diff -u -r1.8 bspfatal.c
|
|
|
46 | 46 | char strbuf[254]; /* In case count is bumped up by one by 167Bug */ |
47 | 47 | } my_p_str; |
48 | 48 | |
49 | | my_p_str.index = 0; |
50 | | my_p_str.index += strcat( |
51 | | my_p_str.strbuf + my_p_str.index, |
| 49 | strcat(my_p_str.strbuf, |
52 | 50 | "\r\nRTEMS Fatal Error Occurred:\r\n the_source = " ); |
53 | 51 | |
54 | 52 | switch ( the_source ) { |
55 | 53 | case INTERNAL_ERROR_CORE: |
56 | | my_p_str.index += strcat( |
57 | | my_p_str.strbuf + my_p_str.index, |
| 54 | strcat(my_p_str.strbuf, |
58 | 55 | "INTERNAL_ERROR_CORE\r\n is_internal = " ); |
59 | 56 | break; |
60 | 57 | |
61 | 58 | case INTERNAL_ERROR_RTEMS_API: |
62 | | my_p_str.index += strcat( |
63 | | my_p_str.strbuf + my_p_str.index, |
| 59 | strcat(my_p_str.strbuf, |
64 | 60 | "INTERNAL_ERROR_RTEMS_API\r\n is_internal = " ); |
65 | 61 | break; |
66 | 62 | |
67 | 63 | case INTERNAL_ERROR_POSIX_API: |
68 | | my_p_str.index += strcat( |
69 | | my_p_str.strbuf + my_p_str.index, |
| 64 | strcat(my_p_str.strbuf, |
70 | 65 | "INTERNAL_ERROR_POSIX_API\r\n is_internal = " ); |
71 | 66 | break; |
72 | 67 | |
73 | 68 | default: |
74 | | my_p_str.index += strcat( |
75 | | my_p_str.strbuf + my_p_str.index, |
| 69 | strcat(my_p_str.strbuf, |
76 | 70 | "UNKNOWN\r\n is_internal = " ); |
77 | 71 | break; |
78 | 72 | } |
79 | 73 | |
80 | 74 | if ( is_internal ) |
81 | | my_p_str.index += strcat( |
82 | | my_p_str.strbuf + my_p_str.index, |
| 75 | strcat(my_p_str.strbuf, |
83 | 76 | "TRUE\r\n the_error = 0x|10,8|\r\n" ); |
84 | 77 | else |
85 | | my_p_str.index += strcat( |
86 | | my_p_str.strbuf + my_p_str.index, |
| 78 | strcat(my_p_str.strbuf, |
87 | 79 | "FALSE\r\n the_error = 0x|10,8|\r\n" ); |
88 | 80 | |
| 81 | my_p_str.index = strlen(my_p_str.strbuf); |
89 | 82 | lcsr->intr_ena = 0; /* disable interrupts */ |
90 | 83 | m68k_set_vbr(0xFFE00000); /* restore 167Bug vectors */ |
91 | 84 | |