File : s-bbcpsp-6xx.adb
1 ------------------------------------------------------------------------------
2 -- --
3 -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
4 -- --
5 -- S Y S T E M . B B . C P U _ S P E C I F I C --
6 -- --
7 -- B o d y --
8 -- --
9 -- Copyright (C) 1999-2002 Universidad Politecnica de Madrid --
10 -- Copyright (C) 2003-2005 The European Space Agency --
11 -- Copyright (C) 2003-2015, AdaCore --
12 -- --
13 -- GNAT is free software; you can redistribute it and/or modify it under --
14 -- terms of the GNU General Public License as published by the Free Soft- --
15 -- ware Foundation; either version 3, or (at your option) any later ver- --
16 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
17 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
18 -- or FITNESS FOR A PARTICULAR PURPOSE. --
19 -- --
20 -- --
21 -- --
22 -- --
23 -- --
24 -- You should have received a copy of the GNU General Public License and --
25 -- a copy of the GCC Runtime Library Exception along with this program; --
26 -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
27 -- <http://www.gnu.org/licenses/>. --
28 -- --
29 -- GNAT was originally developed by the GNAT team at New York University. --
30 -- Extensive contributions were provided by Ada Core Technologies Inc. --
31 ------------------------------------------------------------------------------
32
33 -- This package implements PowerPC architecture specific support for the GNAT
34 -- Ravenscar run time.
35
36 with System.BB.Interrupts;
37
38 package body System.BB.CPU_Specific is
39
40 -------------------------------
41 -- Finish_Initialize_Context --
42 -------------------------------
43
44 procedure Finish_Initialize_Context
45 (Buffer : not null access Context_Buffer)
46 is
47 begin
48 null;
49 end Finish_Initialize_Context;
50
51 --------------------
52 -- Initialize_CPU --
53 --------------------
54
55 procedure Initialize_CPU is
56 begin
57 null;
58 end Initialize_CPU;
59
60 ----------------------------
61 -- Install_Error_Handlers --
62 ----------------------------
63
64 procedure Install_Error_Handlers is
65 begin
66 -- To be implemented ???
67
68 null;
69 end Install_Error_Handlers;
70
71 ---------------------
72 -- Install_Handler --
73 ---------------------
74
75 procedure Install_Exception_Handler
76 (Service_Routine : System.Address;
77 Vector : Vector_Id)
78 is
79 procedure Copy_Handler
80 (Service_Routine : System.Address;
81 Vector : Vector_Id;
82 Id : Interrupts.Interrupt_ID);
83 pragma Import (Asm, Copy_Handler, "copy_handler");
84 begin
85 Copy_Handler (Service_Routine, Vector, 0);
86 end Install_Exception_Handler;
87
88 end System.BB.CPU_Specific;