OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [ada/] [s-rpc.adb] - Blame information for rev 706

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 706 jeremybenn
------------------------------------------------------------------------------
2
--                                                                          --
3
--                         GNAT COMPILER COMPONENTS                         --
4
--                                                                          --
5
--                           S Y S T E M . R P C                            --
6
--                                                                          --
7
--                                 B o d y                                  --
8
--                                                                          --
9
--          Copyright (C) 1992-2009, Free Software Foundation, Inc.         --
10
--                                                                          --
11
-- GNAT 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.  GNAT 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
-- As a special exception under Section 7 of GPL version 3, you are granted --
19
-- additional permissions described in the GCC Runtime Library Exception,   --
20
-- version 3.1, as published by the Free Software Foundation.               --
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
-- GNAT was originally developed  by the GNAT team at  New York University. --
28
-- Extensive contributions were provided by Ada Core Technologies Inc.      --
29
--                                                                          --
30
------------------------------------------------------------------------------
31
 
32
--  Note: this is a dummy implementation which does not support distribution.
33
--  All the bodies but one therefore raise an exception as defined below.
34
--  Establish_RPC_Receiver is callable, so that the ACVC scripts can simulate
35
--  the presence of a master partition to run a test which is otherwise not
36
--  distributed.
37
 
38
--  The GLADE distribution package includes a replacement for this file
39
 
40
package body System.RPC is
41
 
42
   CRLF : constant String := ASCII.CR & ASCII.LF;
43
 
44
   Msg : constant String :=
45
           CRLF & "Distribution support not installed in your environment" &
46
           CRLF & "For information on GLADE, contact Ada Core Technologies";
47
 
48
   ----------
49
   -- Read --
50
   ----------
51
 
52
   procedure Read
53
     (Stream : in out Params_Stream_Type;
54
      Item   : out Ada.Streams.Stream_Element_Array;
55
      Last   : out Ada.Streams.Stream_Element_Offset)
56
   is
57
   begin
58
      raise Program_Error with Msg;
59
   end Read;
60
 
61
   -----------
62
   -- Write --
63
   -----------
64
 
65
   procedure Write
66
     (Stream : in out Params_Stream_Type;
67
      Item   : Ada.Streams.Stream_Element_Array)
68
   is
69
   begin
70
      raise Program_Error with Msg;
71
   end Write;
72
 
73
   ------------
74
   -- Do_RPC --
75
   ------------
76
 
77
   procedure Do_RPC
78
     (Partition : Partition_ID;
79
      Params    : access Params_Stream_Type;
80
      Result    : access Params_Stream_Type)
81
   is
82
   begin
83
      raise Program_Error with Msg;
84
   end Do_RPC;
85
 
86
   ------------
87
   -- Do_APC --
88
   ------------
89
 
90
   procedure Do_APC
91
     (Partition : Partition_ID;
92
      Params    : access Params_Stream_Type)
93
   is
94
   begin
95
      raise Program_Error with Msg;
96
   end Do_APC;
97
 
98
   ----------------------------
99
   -- Establish_RPC_Receiver --
100
   ----------------------------
101
 
102
   procedure Establish_RPC_Receiver
103
     (Partition : Partition_ID;
104
      Receiver  : RPC_Receiver)
105
   is
106
      pragma Unreferenced (Partition, Receiver);
107
   begin
108
      null;
109
   end Establish_RPC_Receiver;
110
 
111
end System.RPC;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.