Changeset 88d594a in rtems for c/src/lib/libbsp/shmdr/poll.c
- Timestamp:
- 05/24/95 21:39:42 (29 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 5b9d6ddf
- Parents:
- bf61e45c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libbsp/shmdr/poll.c
rbf61e45c r88d594a 17 17 * notice must appear in all copies of this file and its derivatives. 18 18 * 19 * $Id$19 * poll.c,v 1.2 1995/05/09 20:22:57 joel Exp 20 20 */ 21 21 22 22 #include <rtems.h> 23 #include <rtems/sysstate.h> 23 24 #include "shm.h" 24 25 #include "clockdrv.h" … … 30 31 Clock_isr( 0 ); /* invoke standard clock ISR */ 31 32 32 /* enable_tracing(); */ 33 /* ticks += 1; */ 34 Shm_Lock( Shm_Local_receive_queue ); 35 tmpfront = Shm_Local_receive_queue->front; 36 Shm_Unlock( Shm_Local_receive_queue ); 37 if ( Shm_Convert(tmpfront) == Shm_Locked_queue_End_of_list ) return; 38 rtems_multiprocessing_announce(); 39 Shm_Interrupt_count++; 33 34 /* 35 * Check for msgs only if we are "up" 36 * This avoids a race condition where we may get a clock 37 * interrupt before MPCI has completed its init 38 */ 39 40 if (_System_state_Is_up(_System_state_Get())) 41 { 42 /* enable_tracing(); */ 43 /* ticks += 1; */ 44 Shm_Lock( Shm_Local_receive_queue ); 45 tmpfront = Shm_Local_receive_queue->front; 46 Shm_Unlock( Shm_Local_receive_queue ); 47 if ( Shm_Convert(tmpfront) == Shm_Locked_queue_End_of_list ) return; 48 rtems_multiprocessing_announce(); 49 Shm_Interrupt_count++; 50 } 40 51 }
Note: See TracChangeset
for help on using the changeset viewer.