/* File pazpl5.c The pxpl5 renderer main */ #include #include #include "multicpu.h" extern void bla(int); extern int remote_velocirender ( int me, int total ); extern int replying; extern void dN_timer ( int *time ); int my_id, view_id, total_views; concurrency_control *shared_cntl; int _processorId, _numProcessors; int main ( int argc, char *argv[]) { int client=0; int then, me, total; if (_processorId) { bla ( 5000000 ); shared_cntl=*((concurrency_control **) 0xfffff880); printf ("Processor 1 thinks shared_cntl is at 0x%x\n", shared_cntl ); while(1) { bla ( 5000000 ); } } else { shared_cntl=(concurrency_control *) newBytes (4096); *((concurrency_control **) 0xfffff880) = shared_cntl; bla ( 5000000 ); printf ("Processor 0 thinks shared_cntl is at 0x%x\n", shared_cntl ); bla ( 5000000 ); bla ( 5000000 ); } printf ("about to call dN_mynode\n" ); dN_mynode( &me ); printf ("call dN_mynode, got %d\n", me ); printf ("about to call dN_nodes\n" ); dN_nodes ( &total ); printf ("call dN_nodes, got %d\n", total ); if (_processorId==0) { extern int *uncached_input_block; extern int *uncached_output_block; extern int *uncached_general_block; uncached_input_block =(int *) newBytes(4096); uncached_output_block =(int *) newBytes(4096); uncached_general_block=(int *) newBytes(4096); } view_id=me-2; total_views=total-2; replying=(me==2); printf ("entering while(1) deal_with loop\n" ); remote_velocirender ( me, total ); }