Changeset 2235066 in rtems
- Timestamp:
- 02/17/09 18:32:33 (15 years ago)
- Branches:
- 4.10, 4.11, 5, master
- Children:
- 49633b9
- Parents:
- e399e9d6
- Location:
- c/src/lib/libbsp/m68k/mvme167
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libbsp/m68k/mvme167/ChangeLog
re399e9d6 r2235066 1 2009-02-17 Till Straumann <strauman@slac.stanford.edu> 2 3 PR 1370/bsps 4 * console/console.c: mvme167 console driver BSP_output_char fails to 5 convert \n -> \n\r 6 1 7 2008-12-04 Joel Sherrill <joel.sherrill@oarcorp.com> 2 8 -
c/src/lib/libbsp/m68k/mvme167/console/console.c
re399e9d6 r2235066 161 161 static void _BSP_output_char( char c ); 162 162 BSP_output_char_function_type BSP_output_char = _BSP_output_char; 163 164 /* '\r' character in memory. This used to live on 165 * the stack but storing the '\r' character is 166 * optimized away by gcc-4.3.2 (since it seems to 167 * be unused [only referenced from inline assembly 168 * code in _167Bug_pollWrite()]). 169 * Hence we make it a global constant. 170 */ 171 static const char cr_char = '\r'; 163 172 164 173 /* Channel info */ … … 1367 1376 rtems_libio_rw_args_t *rw_args = arg; 1368 1377 uint32_t i; 1369 char cr ='\r';1370 1378 1371 1379 for( i = 0; i < rw_args->count; i++ ) { 1372 1380 _167Bug_pollWrite(minor, &(rw_args->buffer[i]), 1); 1373 1381 if ( rw_args->buffer[i] == '\n' ) 1374 _167Bug_pollWrite(minor, &cr , 1);1382 _167Bug_pollWrite(minor, &cr_char, 1); 1375 1383 } 1376 1384 rw_args->bytes_moved = i; … … 1386 1394 { 1387 1395 rtems_device_minor_number printk_minor; 1388 char cr ='\r';1389 1396 1390 1397 /* … … 1400 1407 _167Bug_pollWrite(printk_minor, &c, 1); 1401 1408 if ( c == '\n' ) 1402 _167Bug_pollWrite(printk_minor, &cr , 1);1409 _167Bug_pollWrite(printk_minor, &cr_char, 1); 1403 1410 } 1404 1411
Note: See TracChangeset
for help on using the changeset viewer.