1 ------------------------------------------------------------------------------
3 -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
5 -- S Y S T E M . V X W O R K S . E X T --
9 -- Copyright (C) 2008-2017, Free Software Foundation, Inc. --
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. --
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 ------------------------------------------------------------------------------
29 -- This package provides vxworks specific support functions needed
30 -- by System.OS_Interface.
32 -- This is a version for VxWorks 5 based systems with no interrupts:
33 -- HI-Ravenscar for VxWorks 5, VxWorks 653 vThreads (not ravenscar-cert)
35 package body System
.VxWorks
.Ext
is
37 ERROR
: constant := -1;
43 function Int_Lock
return int
is
52 function Int_Unlock
(Old
: int
) return int
is
53 pragma Unreferenced
(Old
);
58 -----------------------
59 -- Interrupt_Connect --
60 -----------------------
62 function Interrupt_Connect
63 (Vector
: Interrupt_Vector
;
64 Handler
: Interrupt_Handler
;
65 Parameter
: System
.Address
:= System
.Null_Address
) return int
67 pragma Unreferenced
(Vector
, Handler
, Parameter
);
70 end Interrupt_Connect
;
72 -----------------------
73 -- Interrupt_Context --
74 -----------------------
76 function Interrupt_Context
return int
is
78 -- For VxWorks 653 vThreads, never in an interrupt context
81 end Interrupt_Context
;
83 --------------------------------
84 -- Interrupt_Number_To_Vector --
85 --------------------------------
87 function Interrupt_Number_To_Vector
88 (intNum
: int
) return Interrupt_Vector
90 pragma Unreferenced
(intNum
);
93 end Interrupt_Number_To_Vector
;
99 function semDelete
(Sem
: SEM_ID
) return int
is
100 function Os_Sem_Delete
(Sem
: SEM_ID
) return int
;
101 pragma Import
(C
, Os_Sem_Delete
, "semDelete");
103 return Os_Sem_Delete
(Sem
);
106 ------------------------
107 -- taskCpuAffinitySet --
108 ------------------------
110 function taskCpuAffinitySet
(tid
: t_id
; CPU
: int
) return int
is
111 pragma Unreferenced
(tid
, CPU
);
114 end taskCpuAffinitySet
;
116 -------------------------
117 -- taskMaskAffinitySet --
118 -------------------------
120 function taskMaskAffinitySet
(tid
: t_id
; CPU_Set
: unsigned
) return int
is
121 pragma Unreferenced
(tid
, CPU_Set
);
124 end taskMaskAffinitySet
;
126 end System
.VxWorks
.Ext
;