Changeset 772 for soft/giet_vm
- Timestamp:
- Feb 3, 2016, 9:59:18 AM (9 years ago)
- Location:
- soft/giet_vm
- Files:
-
- 128 added
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/Makefile
r753 r772 35 35 applications/raycast/raycast.py \ 36 36 applications/router/router.py \ 37 applications/rosenfeld/rosenfeld.py \ 37 38 applications/shell/shell.py \ 38 39 applications/sort/sort.py \ … … 195 196 cd applications/raycast && $(MAKE) clean && cd ../.. 196 197 cd applications/router && $(MAKE) clean && cd ../.. 198 cd applications/rosenfeld && $(MAKE) clean && cd ../.. 197 199 cd applications/shell && $(MAKE) clean && cd ../.. 198 200 cd applications/sort && $(MAKE) clean && cd ../.. … … 222 224 mmd -o -i $< ::/bin/raycast || true 223 225 mmd -o -i $< ::/bin/router || true 226 mmd -o -i $< ::/bin/rosenfeld || true 224 227 mmd -o -i $< ::/bin/shell || true 225 228 mmd -o -i $< ::/bin/sort || true … … 240 243 mcopy -o -i $< applications/raycast/appli.elf ::/bin/raycast || true 241 244 mcopy -o -i $< applications/router/appli.elf ::/bin/router || true 245 mcopy -o -i $< applications/rosenfeld/appli.elf ::/bin/rosenfeld || true 242 246 mcopy -o -i $< applications/shell/appli.elf ::/bin/shell || true 243 247 mcopy -o -i $< applications/sort/appli.elf ::/bin/sort || true … … 422 426 423 427 ######################################## 428 ### rosenfeld application compilation 429 applications/rosenfeld/appli.elf: build/libs/libmath.a build/libs/libuser.a 430 $(MAKE) -C applications/rosenfeld 431 432 ######################################## 424 433 ### shell application compilation 425 434 applications/shell/appli.elf: build/libs/libuser.a -
soft/giet_vm/applications/mjpeg/mjpeg.c
r748 r772 469 469 470 470 // save on disk 471 unsigned int fdout = giet_fat_open( "/home/mjpeg_instrumentation" , O_CREAT E);471 unsigned int fdout = giet_fat_open( "/home/mjpeg_instrumentation" , O_CREAT); 472 472 if ( fdout < 0 ) 473 473 PRINTF("\n[MJPEG ERROR] cannot open file /home/mjpeg_instrumentation\n"); -
soft/giet_vm/applications/shell/shell.c
r768 r772 129 129 size = info.size; 130 130 131 dst_fd = giet_fat_open( argv[2] , O_CREAT E | O_TRUNC);131 dst_fd = giet_fat_open( argv[2] , O_CREAT | O_TRUNC); 132 132 133 133 if (dst_fd < 0) -
soft/giet_vm/applications/transpose/transpose.c
r769 r772 276 276 277 277 // open instrumentation file 278 unsigned int fd = giet_fat_open( "/home/transpose.inst" , O_CREAT E);278 unsigned int fd = giet_fat_open( "/home/transpose.inst" , O_CREAT); 279 279 if ( fd < 0 ) 280 280 { … … 453 453 } 454 454 455 fd_out = giet_fat_open( output_file_name , O_CREAT E); // create if required455 fd_out = giet_fat_open( output_file_name , O_CREAT); // create if required 456 456 if ( fd_out < 0 ) 457 457 { -
soft/giet_vm/applications/transpose/transpose_rw.c
r764 r772 146 146 147 147 // open output file 148 fd_out = giet_fat_open( output_file_name , O_CREAT E); // create if required148 fd_out = giet_fat_open( output_file_name , O_CREAT ); // create if required 149 149 if ( fd_out < 0 ) 150 150 { -
soft/giet_vm/giet_common/kernel_locks.c
r709 r772 309 309 310 310 #if GIET_DEBUG_SQT_LOCK 311 _nolock_printf("\n[DEBUG SQT_LOCK] P[%d,%d,%d] initialises SQT node[%d,%d,%d] : \n"312 " parent = %x / childO = %x / child1 = %x / child2 = %x / child3 = %x\n",313 px , py , pl , x , y , level ,314 (unsigned int)node->parent ,315 (unsigned int)node->child[0] ,316 (unsigned int)node->child[1] ,317 (unsigned int)node->child[2] ,318 (unsigned int)node->child[3] );319 #endif 320 321 // recursive calls for children nodes311 _nolock_printf("\n[DEBUG SQT_LOCK] P[%d,%d,%d] initialises SQT node[%d,%d,%d] : \n" 312 " parent = %x / childO = %x / child1 = %x / child2 = %x / child3 = %x\n", 313 px , py , pl , x , y , level , 314 (unsigned int)node->parent , 315 (unsigned int)node->child[0] , 316 (unsigned int)node->child[1] , 317 (unsigned int)node->child[2] , 318 (unsigned int)node->child[3] ); 319 #endif 320 321 // recursive calls for children nodes 322 322 for ( i = 0 ; i < 4 ; i++ ) 323 323 { -
soft/giet_vm/giet_fat32/fat32.c
r761 r772 2721 2721 // This function implements the giet_fat_open() system call. 2722 2722 // The semantic is similar to the UNIX open() function, with some limitations: 2723 // - only the O_CREAT E, O_RDONLY, and O_TRUNC flags are supported.2723 // - only the O_CREAT, O_RDONLY, and O_TRUNC flags are supported. 2724 2724 // - the UNIX access rights are not supported. 2725 2725 // If the file does not exist in the specified directory, it is created when 2726 // the O_CREAT Eflag is set.2726 // the O_CREAT flag is set. 2727 2727 // If the specified directory does not exist, an error is returned. 2728 2728 // It allocates a file descriptor to the calling task, for the file identified … … 2740 2740 /////////////////////////////////////////////////////////////////////////////// 2741 2741 int _fat_open( char* pathname, // absolute path from root 2742 unsigned int flags ) // O_CREAT Eand O_RDONLY2742 unsigned int flags ) // O_CREAT and O_RDONLY 2743 2743 { 2744 2744 unsigned int fd_id; // index in File-Descriptor-Array … … 2749 2749 2750 2750 // get flags 2751 unsigned int create = ((flags & O_CREAT E)!= 0);2751 unsigned int create = ((flags & O_CREAT) != 0); 2752 2752 unsigned int read_only = ((flags & O_RDONLY) != 0); 2753 2753 unsigned int truncate = ((flags & O_TRUNC) != 0); -
soft/giet_vm/giet_fat32/fat32.h
r761 r772 228 228 229 229 extern int _fat_open( char* pathname, // path from root 230 unsigned int flags ); // O_CREAT E/O_RDONLY230 unsigned int flags ); // O_CREAT/O_RDONLY 231 231 232 232 extern int _fat_close( unsigned int fd_id ); // file descriptor -
soft/giet_vm/giet_fat32/fat32_shared.h
r746 r772 38 38 #define O_RDONLY 0x01 39 39 #define O_TRUNC 0x10 40 #define O_CREAT E0x2040 #define O_CREAT 0x20 41 41 42 42 /******************************************************************************** -
soft/giet_vm/giet_libs/stdio.h
r771 r772 161 161 int arg_3 ) 162 162 { 163 register int reg_no_and_output asm("v0") = call_no;164 register int reg_a0 asm("a0") = arg_0;165 register int reg_a1 asm("a1") = arg_1;166 register int reg_a2 asm("a2") = arg_2;167 register int reg_a3 asm("a3") = arg_3;168 169 asmvolatile(163 register int reg_no_and_output __asm__("v0") = call_no; 164 register int reg_a0 __asm__("a0") = arg_0; 165 register int reg_a1 __asm__("a1") = arg_1; 166 register int reg_a2 __asm__("a2") = arg_2; 167 register int reg_a3 __asm__("a3") = arg_3; 168 169 __asm__ volatile( 170 170 "syscall" 171 171 : "+r" (reg_no_and_output), /* input/output argument */ -
soft/giet_vm/giet_libs/stdlib.c
r771 r772 113 113 114 114 /////////////////////////////////// 115 unsigned int strlen(char* string )115 int strlen( const char* string ) 116 116 { 117 117 unsigned int i = 0; … … 121 121 122 122 /////////////////////////////// 123 unsigned int strcmp(char * s1,124 123 int strcmp( const char * s1, 124 const char * s2 ) 125 125 { 126 126 while (1) … … 135 135 ///////////////////////// 136 136 char* strcpy( char* dest, 137 c har* source )137 const char* source ) 138 138 { 139 139 if (!dest || !source) return dest; -
soft/giet_vm/giet_libs/stdlib.h
r771 r772 45 45 // The terminating NUL character is not taken into account. 46 46 //////////////////////////////////////////////////////////////////////////////////////// 47 unsigned int strlen(char* string );47 int strlen( const char* string ); 48 48 49 49 //////////////////////////////////////////////////////////////////////////////////////// … … 52 52 // It returns 1 if they are not. 53 53 //////////////////////////////////////////////////////////////////////////////////////// 54 unsigned int strcmp(char* s1,55 54 int strcmp( const char* s1, 55 const char* s2 ); 56 56 57 57 //////////////////////////////////////////////////////////////////////////////////////// … … 60 60 //////////////////////////////////////////////////////////////////////////////////////// 61 61 char* strcpy( char* dest, 62 c har* source );62 const char* source ); 63 63 64 64 /////////////////////////////////////////////////////////////////////////////////////// -
soft/giet_vm/giet_python/genmap
r753 r772 40 40 # - raycast 41 41 # - router 42 # - rosenfeld 42 43 # - sort 43 44 # - shell … … 151 152 default = False, 152 153 help = 'map the "router" application for the GietVM' ) 154 155 parser.add_option( '--rosenfeld', action = 'store_true', dest = 'rosenfeld', 156 default = False, 157 help = 'map the "rosenfeld" application for the GietVM' ) 153 158 154 159 parser.add_option( '--shell', action = 'store_true', dest = 'shell', … … 204 209 map_raycast = options.raycast # map "raycast" application if True 205 210 map_router = options.router # map "router" application if True 211 map_rosenfeld = options.rosenfeld # map "rosenfeld" application if True 206 212 map_shell = options.shell # map "shell" application if True 207 213 map_sort = options.sort # map "sort" application if True … … 281 287 print '[genmap] application "router" will be loaded' 282 288 289 if ( map_rosenfeld ): 290 appli = __import__( 'rosenfeld' ) 291 appli.extend( mapping ) 292 print '[genmap] application "rosenfeld" will be loaded' 293 283 294 if ( map_shell ): 284 295 appli = __import__( 'shell' )
Note: See TracChangeset
for help on using the changeset viewer.