1 ------------------------------------------------------------------------------
3 -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
5 -- S Y S T E M . V X W O R K S --
9 -- Copyright (C) 1998-2009, Free Software Foundation, Inc. --
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. --
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. --
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/>. --
27 -- GNARL was developed by the GNARL team at Florida State University. --
28 -- Extensive contributions were provided by Ada Core Technologies, Inc. --
30 ------------------------------------------------------------------------------
32 -- This is the M68K VxWorks version of this package
36 package System
.VxWorks
is
39 package IC
renames Interfaces
.C
;
41 -- Floating point context record. 68K version
43 FP_NUM_DREGS
: constant := 8;
44 FP_STATE_FRAME_SIZE
: constant := 216;
46 type DOUBLEX
is array (1 .. 12) of Interfaces
.Unsigned_8
;
47 pragma Pack
(DOUBLEX
);
48 for DOUBLEX
'Size use 12 * 8;
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;
54 type FPREG_SET
is record
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
;
65 type FP_CONTEXT
is record
67 stateFrame
: Fp_State_Frame_Array
;
69 pragma Convention
(C
, FP_CONTEXT
);
71 Num_HW_Interrupts
: constant := 256;
72 -- Number of entries in the hardware interrupt vector table