source: rtems/c/src/lib/libbsp/shared/smp/bspsmp_wait_for.c @ 9b4422a2

4.115
Last change on this file since 9b4422a2 was 9b4422a2, checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 15:09:24

Remove All CVS Id Strings Possible Using a Script

Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines

next to each other after Id string line removed.

+ remove entire comment blocks which only exited to

contain CVS Ids

+ If the processing left a blank line at the top of

a file, it was removed.

  • Property mode set to 100644
File size: 621 bytes
Line 
1/*
2 *
3 *  COPYRIGHT (c) 1989-2011.
4 *  On-Line Applications Research Corporation (OAR).
5 *
6 *  The license and distribution terms for this file may be
7 *  found in the file LICENSE in this distribution or at
8 *  http://www.rtems.com/license/LICENSE.
9 */
10
11void rtems_bsp_delay( int usec );
12
13void bsp_smp_wait_for(
14  volatile unsigned int *address,
15  unsigned int           desired,
16  int                    maximum_usecs
17)
18{
19  int iterations;
20  volatile unsigned int *p = address;
21
22  for (iterations=0 ;  iterations < maximum_usecs ; iterations++ ) {
23    if ( *p == desired )
24      break;
25
26    rtems_bsp_delay( 1 );
27  }
28}
Note: See TracBrowser for help on using the repository browser.