source: rtems-schedsim/schedsim/shell/schedsim_priority/smp_stub.c @ 2d51251

Last change on this file since 2d51251 was 2d51251, checked in by Jennifer Averett <jennifer.averett@…>, on 05/09/14 at 13:35:58

schedsim: Add smp support.

  • Property mode set to 100644
File size: 831 bytes
RevLine 
[9077d3c]1/*
2 *  RTEMS SMP Support for Single Core
3 *
[a2aad55]4 *  COPYRIGHT (c) 1989-2013.
[9077d3c]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
12#include <rtems.h>
13#include <rtems/bspIo.h>
14#include <stdlib.h>
15
[2d51251]16uint32_t _CPU_SMP_Initialize( void )
[9077d3c]17{
[2d51251]18  /* return the number of CPUs */
19  return 1; /* XXX */
[9077d3c]20}
21
[2d51251]22bool _CPU_SMP_Start_processor( uint32_t cpu_index )
[9077d3c]23{
[2d51251]24  return true;
[9077d3c]25}
26
[2d51251]27void _CPU_SMP_Finalize_initialization( uint32_t cpu_count )
[9077d3c]28{
29}
30
[2d51251]31void _CPU_SMP_Send_interrupt( uint32_t target_processor_index )
[9077d3c]32{
[2d51251]33}
[9077d3c]34
[2d51251]35void _CPU_SMP_Processor_event_broadcast( void )
[9077d3c]36{
37}
38
[2d51251]39void _CPU_SMP_Processor_event_receive( void )
[9077d3c]40{
41}
42
[2d51251]43uint32_t _CPU_SMP_Get_current_processor( void )
[9077d3c]44{
[2d51251]45  return 0;
[9077d3c]46}
Note: See TracBrowser for help on using the repository browser.