Changeset 2d51251 in rtems-schedsim for schedsim/rtems/sched_cpu/cpu.c


Ignore:
Timestamp:
May 9, 2014, 1:35:58 PM (6 years ago)
Author:
Jennifer Averett <jennifer.averett@…>
Branches:
master
Children:
b1b31c0
Parents:
0745eed
git-author:
Jennifer Averett <jennifer.averett@…> (05/09/14 13:35:58)
git-committer:
Jennifer Averett <jennifer.averett@…> (05/09/14 13:37:18)
Message:

schedsim: Add smp support.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • schedsim/rtems/sched_cpu/cpu.c

    r0745eed r2d51251  
    2020#include <rtems/score/wkspace.h>
    2121
     22int _CPU_ISR_level_on_sched_cpu;
     23
    2224/*  _CPU_Initialize
    2325 *
     
    3335void _CPU_Initialize(void)
    3436{
    35   /*
    36    *  If there is not an easy way to initialize the FP context
    37    *  during Context_Initialize, then it is usually easier to
    38    *  save an "uninitialized" FP context here and copy it to
    39    *  the task's during Context_Initialize.
    40    */
    41 
    42   /* FP context initialization support goes here */
     37  _CPU_ISR_level_on_sched_cpu = 1;
    4338}
    4439
    45 /*PAGE
    46  *
    47  *  _CPU_ISR_Get_level
    48  *
    49  *  NO_CPU Specific Information:
    50  *
    51  *  XXX document implementation including references if appropriate
    52  */
    53 
    54 uint32_t   _CPU_ISR_Get_level( void )
    55 {
    56   /*
    57    *  This routine returns the current interrupt level.
    58    */
    59 
    60   return 0;
    61 }
    62 
    63 /*PAGE
    64  *
     40/*
    6541 *  _CPU_ISR_install_raw_handler
    6642 *
     
    8258}
    8359
    84 /*PAGE
    85  *
     60/*
    8661 *  _CPU_ISR_install_vector
    8762 *
     
    126101}
    127102
    128 /*PAGE
    129  *
     103/*
    130104 *  _CPU_Install_interrupt_stack
    131105 *
     
    139113}
    140114
    141 /*PAGE
    142  *
     115/*
    143116 *  _CPU_Thread_Idle_body
    144117 *
Note: See TracChangeset for help on using the changeset viewer.