Changeset 165 for soft/giet_vm/apps/hello
- Timestamp:
- Jul 4, 2012, 2:51:18 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/apps/hello/main.c
r160 r165 5 5 unsigned int i; 6 6 char byte; 7 unsigned int proc = procid();7 unsigned int proc = giet_procid(); 8 8 9 9 for( i=0 ; i<1000 ; i++ ) 10 10 { 11 if( tty_printf(" hello from processor %d\n", proc) )11 if( giet_tty_printf(" hello from processor %d\n", proc) ) 12 12 { 13 tty_puts("echec tty_printf\n");14 exit();13 giet_tty_puts("echec tty_printf\n"); 14 giet_exit(); 15 15 } 16 if( tty_getc_irq((void*)&byte) )16 if( giet_tty_getc((void*)&byte) ) 17 17 { 18 tty_puts("echec tty_getc_irq\n");19 exit();18 giet_tty_puts("echec tty_getc_irq\n"); 19 giet_exit(); 20 20 } 21 if(byte == 'q')exit();21 if ( byte == 'q' ) giet_exit(); 22 22 } 23 23 giet_exit(); 24 24 25 25 } // end main
Note: See TracChangeset
for help on using the changeset viewer.