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