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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [ada/] [s-vxwork-m68k.ads] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 706 jeremybenn
------------------------------------------------------------------------------
2
--                                                                          --
3
--                  GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS                --
4
--                                                                          --
5
--                        S Y S T E M . V X W O R K S                       --
6
--                                                                          --
7
--                                   S p e c                                --
8
--                                                                          --
9
--          Copyright (C) 1998-2009, Free Software Foundation, Inc.         --
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.  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
-- GNARL was developed by the GNARL team at Florida State University.       --
28
-- Extensive contributions were provided by Ada Core Technologies, Inc.     --
29
--                                                                          --
30
------------------------------------------------------------------------------
31
 
32
--  This is the M68K VxWorks version of this package
33
 
34
with Interfaces.C;
35
 
36
package System.VxWorks is
37
   pragma Preelaborate;
38
 
39
   package IC renames Interfaces.C;
40
 
41
   --  Floating point context record. 68K version
42
 
43
   FP_NUM_DREGS        : constant := 8;
44
   FP_STATE_FRAME_SIZE : constant := 216;
45
 
46
   type DOUBLEX is array (1 .. 12) of Interfaces.Unsigned_8;
47
   pragma Pack (DOUBLEX);
48
   for DOUBLEX'Size use 12 * 8;
49
 
50
   type DOUBLEX_Array is array (1 .. FP_NUM_DREGS) of DOUBLEX;
51
   pragma Pack (DOUBLEX_Array);
52
   for DOUBLEX_Array'Size use FP_NUM_DREGS * 12 * 8;
53
 
54
   type FPREG_SET is record
55
      fpcr  : IC.int;
56
      fpsr  : IC.int;
57
      fpiar : IC.int;
58
      fpx   : DOUBLEX_Array;
59
   end record;
60
 
61
   type Fp_State_Frame_Array is array (1 .. FP_STATE_FRAME_SIZE) of IC.char;
62
   pragma Pack (Fp_State_Frame_Array);
63
   for Fp_State_Frame_Array'Size use 8 * FP_STATE_FRAME_SIZE;
64
 
65
   type FP_CONTEXT is record
66
      fpRegSet   : FPREG_SET;
67
      stateFrame : Fp_State_Frame_Array;
68
   end record;
69
   pragma Convention (C, FP_CONTEXT);
70
 
71
   Num_HW_Interrupts : constant := 256;
72
   --  Number of entries in the hardware interrupt vector table
73
 
74
end System.VxWorks;

powered by: WebSVN 2.1.0

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