Changeset 295 for soft/giet_vm/display/main.c
- Timestamp:
- Mar 26, 2014, 6:44:44 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/display/main.c
r258 r295 1 #include <stdio.h> 1 #include "stdio.h" 2 #include "hard_config.h" 2 3 3 4 #define NBLOCKS 32 // (128 * 128) / 512 … … 7 8 __attribute__((constructor)) void main() 8 9 { 9 int fd;10 int blocks;11 unsigned int ko;12 unsigned int blocks_to_skip = 8*NBLOCKS;10 int fd; 11 int blocks; 12 unsigned int ko; 13 unsigned int blocks_to_skip = 8*NBLOCKS; 13 14 14 giet_tty_printf("\nStarting task DISPLAY on processor %d at cycle %d\n", 15 giet_procid(), giet_proctime() ); 15 unsigned int procid = giet_procid(); 16 unsigned int cluster_xy = procid/NB_PROCS_MAX; 17 unsigned int lpid = procid%NB_PROCS_MAX; 18 unsigned int x = cluster_xy >> Y_WIDTH; 19 unsigned int y = cluster_xy & ((1<<Y_WIDTH)-1); 20 21 giet_tty_printf( "*** Starting task display on processor[%d,%d,%d] at cycle %d\n\n", 22 x, y, lpid, giet_proctime() ); 16 23 17 24 ///////////////////////////////////////////
Note: See TracChangeset
for help on using the changeset viewer.