source: rtems-schedsim/schedsim/shell/schedsim_priority/smp_stub.c @ 1cbbaef

Last change on this file since 1cbbaef was 9077d3c, checked in by Joel Sherrill <joel.sherrill@…>, on 05/17/11 at 19:31:08

2011-05-17 Joel Sherrill <joel.sherrill@…>

  • Makefile.am: Merge and update code. Simulators for Deterministic Priority and SMP Simple Schedulers now work.
  • ChangeLog?, smp_stub.c, scenarios/script01.expected, scenarios/script01.output, scenarios/script01.scen, scenarios/script02.expected, scenarios/script02.output, scenarios/script02.scen, scenarios/script03.expected, scenarios/script03.output, scenarios/script03.scen, scenarios/script04.expected, scenarios/script04.output, scenarios/script04.scen, scenarios/script05.expected, scenarios/script05.output, scenarios/script05.scen, scenarios/script06.expected, scenarios/script06.output, scenarios/script06.scen: New files.
  • scenarios/script01, scenarios/script02, scenarios/script03, scenarios/script04, scenarios/script05, scenarios/script06: Removed.
  • Property mode set to 100644
File size: 1.1 KB
Line 
1/*
2 *  RTEMS SMP Support for Single Core
3 *
4 *  COPYRIGHT (c) 1989-2011.
5 *  On-Line Applications Research Corporation (OAR).
6 *
7 *  The license and distribution terms for this file may be
8 *  found in the file LICENSE in this distribution or at
9 *  http://www.rtems.com/license/LICENSE.
10 *
11 *  $Id$
12 */
13
14#include <rtems.h>
15#include <rtems/bspIo.h>
16#include <rtems/bspsmp.h>
17#include <stdlib.h>
18
19
20void bsp_smp_secondary_cpu_initialize(int cpu)
21{
22}
23
24int bsp_smp_processor_id(void)
25{
26  return 0;
27}
28
29int bsp_smp_initialize(
30  int maximum
31)
32{
33  /* return the number of CPUs */
34  return maximum;
35}
36
37void bsp_smp_broadcast_interrupt(void)
38{
39}
40
41void bsp_smp_broadcast_message(
42  uint32_t  message
43)
44{
45}
46
47void bsp_smp_interrupt_cpu(
48  int cpu
49)
50{
51}
52
53void bsp_smp_delay( int max )
54{
55}
56
57void bsp_smp_wait_for(
58  volatile unsigned int *address,
59  unsigned int           desired,
60  int                    maximum_usecs
61)
62{
63  int iterations;
64  volatile int i;
65  volatile unsigned int *p = address;
66
67  for (iterations=0 ;  iterations < maximum_usecs ; iterations++ ) {
68    *p = desired;
69    /* XXX hack to make simulator happy */
70  }
71}
72
Note: See TracBrowser for help on using the repository browser.