File : s-bcprmu.adb
1 ------------------------------------------------------------------------------
2 -- --
3 -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
4 -- --
5 -- SYSTEM.BB.CPU_PRIMITIVES.MULTIPROCESSORS --
6 -- --
7 -- B o d y --
8 -- --
9 -- Copyright (C) 2010-2013, 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 package body System.BB.CPU_Primitives.Multiprocessors is
32
33 -----------------
34 -- Current_CPU --
35 -----------------
36
37 function Current_CPU return System.Multiprocessors.CPU is
38 begin
39 return System.Multiprocessors.CPU'First;
40 end Current_CPU;
41
42 --------------
43 -- Poke_CPU --
44 --------------
45
46 procedure Poke_CPU (CPU_Id : System.Multiprocessors.CPU) is
47 begin
48 null;
49 end Poke_CPU;
50
51 ---------------
52 -- Start_CPU --
53 ---------------
54
55 procedure Start_CPU (CPU_Id : System.Multiprocessors.CPU) is
56 begin
57 null;
58 end Start_CPU;
59
60 --------------------
61 -- Start_All_CPUs --
62 --------------------
63
64 procedure Start_All_CPUs is
65 begin
66 null;
67 end Start_All_CPUs;
68
69 end System.BB.CPU_Primitives.Multiprocessors;