File : s-bcprmu.ads


   1 ------------------------------------------------------------------------------
   2 --                                                                          --
   3 --                 GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS                 --
   4 --                                                                          --
   5 --                 SYSTEM.BB.CPU_PRIMITIVES.MULTIPROCESSORS                 --
   6 --                                                                          --
   7 --                                 S p e c                                  --
   8 --                                                                          --
   9 --                     Copyright (C) 2010-2015, AdaCore                     --
  10 --                                                                          --
  11 -- GNARL is free software; you can  redistribute it  and/or modify it under --
  12 -- terms of the  GNU General Public License as published  by the Free Soft- --
  13 -- ware  Foundation;  either version 3,  or (at your option) any later ver- --
  14 -- sion. GNARL is distributed in the hope that it will be useful, but WITH- --
  15 -- OUT ANY WARRANTY;  without even the  implied warranty of MERCHANTABILITY --
  16 -- or FITNESS FOR A PARTICULAR PURPOSE.                                     --
  17 --                                                                          --
  18 --                                                                          --
  19 --                                                                          --
  20 --                                                                          --
  21 --                                                                          --
  22 -- You should have received a copy of the GNU General Public License and    --
  23 -- a copy of the GCC Runtime Library Exception along with this program;     --
  24 -- see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see    --
  25 -- <http://www.gnu.org/licenses/>.                                          --
  26 --                                                                          --
  27 ------------------------------------------------------------------------------
  28 
  29 pragma Restrictions (No_Elaboration_Code);
  30 
  31 with System.Multiprocessors;
  32 
  33 package System.BB.CPU_Primitives.Multiprocessors is
  34    pragma Preelaborate;
  35 
  36    function Current_CPU return System.Multiprocessors.CPU;
  37    pragma Inline (Current_CPU);
  38    --  Return the id of the current CPU
  39 
  40    procedure Poke_CPU (CPU_Id : System.Multiprocessors.CPU);
  41    --  Poke the given CPU to signal that a rescheduling may be required
  42 
  43    procedure Start_CPU (CPU_Id : System.Multiprocessors.CPU);
  44    --  Start given CPU
  45 
  46    procedure Start_All_CPUs;
  47    pragma Export (C, Start_All_CPUs, "__gnat_start_slave_cpus");
  48    --  Start all CPUs
  49 
  50 end System.BB.CPU_Primitives.Multiprocessors;