Changeset b06e68ef in rtems for c/src/lib/libbsp/shmdr/poll.c
- Timestamp:
- Aug 17, 1995, 7:51:51 PM (26 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 95fbca1
- Parents:
- 3b438fa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libbsp/shmdr/poll.c
r3b438fa rb06e68ef 17 17 * notice must appear in all copies of this file and its derivatives. 18 18 * 19 * poll.c,v 1.2 1995/05/09 20:22:57 joel Exp19 * $Id$ 20 20 */ 21 21 22 22 #include <rtems.h> 23 23 #include <rtems/sysstate.h> 24 #include <rtems/libio.h> 25 24 26 #include "shm.h" 25 #include "clockdrv.h"26 27 27 28 void Shm_Poll() 28 29 { 29 30 rtems_unsigned32 tmpfront; 31 rtems_libio_ioctl_args_t args; 30 32 31 Clock_isr( 0 ); /* invoke standard clock ISR */ 32 33 /* invoke clock isr */ 34 args.iop = 0; 35 args.command = rtems_build_name('I', 'S', 'R', ' '); 36 (void) rtems_io_control(rtems_clock_major, rtems_clock_minor, &args); 33 37 34 38 /* … … 40 44 if (_System_state_Is_up(_System_state_Get())) 41 45 { 42 /* enable_tracing(); */43 /* ticks += 1; */44 Shm_Lock( Shm_Local_receive_queue );45 46 tmpfront = Shm_Local_receive_queue->front; 46 Shm_Unlock( Shm_Local_receive_queue );47 if ( Shm_Convert(tmpfront) != Shm_Locked_queue_End_of_list ){48 rtems_multiprocessing_announce();49 Shm_Interrupt_count++;47 if ( Shm_Convert(tmpfront) != Shm_Locked_queue_End_of_list ) 48 { 49 rtems_multiprocessing_announce(); 50 Shm_Interrupt_count++; 50 51 } 51 52 }
Note: See TracChangeset
for help on using the changeset viewer.