Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
870ce4d5
Commit
870ce4d5
authored
Oct 13, 2016
by
Ed Falis
Committed by
Arnaud Charlet
Oct 13, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* i-vxinco.adb, i-vxinco.ads: New files.
From-SVN: r241114
parent
07820c51
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
105 additions
and
0 deletions
+105
-0
gcc/ada/ChangeLog
+1
-0
gcc/ada/i-vxinco.adb
+48
-0
gcc/ada/i-vxinco.ads
+56
-0
No files found.
gcc/ada/ChangeLog
View file @
870ce4d5
...
...
@@ -16,6 +16,7 @@
2016
-
10
-
13
Ed
Falis
<
falis
@
adacore
.
com
>
*
i
-
vxinco
.
adb
,
i
-
vxinco
.
ads
:
New
files
.
*
impunit
.
adb
:
add
i
-
vxinco
.
ads
.
*
s
-
interr
-
vxworks
.
adb
:
add
hook
for
user
interrupt
connection
routine
.
...
...
gcc/ada/i-vxinco.adb
0 → 100644
View file @
870ce4d5
------------------------------------------------------------------------------
--
--
--
GNAT
RUN
-
TIME
LIBRARY
(
GNARL
)
COMPONENTS
--
--
--
--
I
N
T
E
R
F
A
C
E
S
.
V
X
W
O
R
K
S
.
I
N
T
_
C
O
N
N
E
C
T
I
O
N
--
--
--
--
B
o
d
y
--
--
--
--
Copyright
(
C
)
2016
,
AdaCore
--
--
--
GNARL
is
free
software
;
you
can
redistribute
it
and
/
or
modify
it
under
--
--
terms
of
the
GNU
General
Public
License
as
published
by
the
Free
Soft
-
--
--
ware
Foundation
;
either
version
3
,
or
(
at
your
option
)
any
later
ver
-
--
--
sion
.
GNAT
is
distributed
in
the
hope
that
it
will
be
useful
,
but
WITH
-
--
--
OUT
ANY
WARRANTY
;
without
even
the
implied
warranty
of
MERCHANTABILITY
--
--
or
FITNESS
FOR
A
PARTICULAR
PURPOSE
.
--
--
--
--
As
a
special
exception
under
Section
7
of
GPL
version
3
,
you
are
granted
--
--
additional
permissions
described
in
the
GCC
Runtime
Library
Exception
,
--
--
version
3.1
,
as
published
by
the
Free
Software
Foundation
.
--
--
--
--
You
should
have
received
a
copy
of
the
GNU
General
Public
License
and
--
--
a
copy
of
the
GCC
Runtime
Library
Exception
along
with
this
program
;
--
--
see
the
files
COPYING3
and
COPYING
.
RUNTIME
respectively
.
If
not
,
see
--
--
<
http
://
www
.
gnu
.
org
/
licenses
/>.
--
--
--
--
GNARL
was
developed
by
the
GNARL
team
at
Florida
State
University
.
--
--
Extensive
contributions
were
provided
by
Ada
Core
Technologies
,
Inc
.
--
--
--
------------------------------------------------------------------------------
package
body
Interfaces
.
VxWorks
.
Int_Connection
is
Connection_Routine
:
Interrupt_Connector
;
pragma
Import
(
C
,
Connection_Routine
,
"__gnat_user_int_connect"
);
--
Declared
in
System
.
Interrupts
.
Defaults
to
the
standard
OS
connector
in
--
System
.
OS_Interface
(
or
Interfaces
.
VxWorks
for
restricted
runtimes
).
-------------
--
Connect
--
-------------
procedure
Connect
(
Connector
:
Interrupt_Connector
)
is
begin
Connection_Routine
:=
Connector
;
end
Connect
;
end
Interfaces
.
VxWorks
.
Int_Connection
;
gcc/ada/i-vxinco.ads
0 → 100644
View file @
870ce4d5
------------------------------------------------------------------------------
--
--
--
GNAT
RUN
-
TIME
LIBRARY
(
GNARL
)
COMPONENTS
--
--
--
--
I
N
T
E
R
F
A
C
E
S
.
V
X
W
O
R
K
S
.
I
N
T
_
C
O
N
N
E
C
T
I
O
N
--
--
--
--
S
p
e
c
--
--
--
--
Copyright
(
C
)
2016
,
AdaCore
--
--
--
GNARL
is
free
software
;
you
can
redistribute
it
and
/
or
modify
it
under
--
--
terms
of
the
GNU
General
Public
License
as
published
by
the
Free
Soft
-
--
--
ware
Foundation
;
either
version
3
,
or
(
at
your
option
)
any
later
ver
-
--
--
sion
.
GNAT
is
distributed
in
the
hope
that
it
will
be
useful
,
but
WITH
-
--
--
OUT
ANY
WARRANTY
;
without
even
the
implied
warranty
of
MERCHANTABILITY
--
--
or
FITNESS
FOR
A
PARTICULAR
PURPOSE
.
--
--
--
--
As
a
special
exception
under
Section
7
of
GPL
version
3
,
you
are
granted
--
--
additional
permissions
described
in
the
GCC
Runtime
Library
Exception
,
--
--
version
3.1
,
as
published
by
the
Free
Software
Foundation
.
--
--
--
--
You
should
have
received
a
copy
of
the
GNU
General
Public
License
and
--
--
a
copy
of
the
GCC
Runtime
Library
Exception
along
with
this
program
;
--
--
see
the
files
COPYING3
and
COPYING
.
RUNTIME
respectively
.
If
not
,
see
--
--
<
http
://
www
.
gnu
.
org
/
licenses
/>.
--
--
--
--
GNARL
was
developed
by
the
GNARL
team
at
Florida
State
University
.
--
--
Extensive
contributions
were
provided
by
Ada
Core
Technologies
,
Inc
.
--
--
--
------------------------------------------------------------------------------
--
This
package
provides
users
with
the
ability
to
use
a
custom
routine
for
--
connecting
hardware
interrupts
for
VxWorks
environments
that
support
the
--
capability
to
handle
them
.
The
custom
routine
must
have
the
same
profile
--
as
the
VxWorks
intConnect
()
routine
.
with
System
;
package
Interfaces
.
VxWorks
.
Int_Connection
is
type
Interrupt_Connector
is
access
function
(
Vector
:
Interrupt_Vector
;
Handler
:
VOIDFUNCPTR
;
Parameter
:
System
.
Address
:=
System
.
Null_Address
)
return
STATUS
;
pragma
Convention
(
C
,
Interrupt_Connector
);
--
Convention
C
for
compatibility
with
intConnect
().
User
alternatives
are
--
likely
to
be
imports
of
C
routines
anyway
.
procedure
Connect
(
Connector
:
Interrupt_Connector
);
--
Set
user
-
defined
interrupt
connection
routine
.
Must
precede
calls
to
--
Ada
.
Interrupts
.
Attach_Handler
,
or
the
default
connector
from
--
System
.
OS_Interface
(
or
Interfaces
.
VxWorks
for
Ravenscar
Cert
)
will
be
--
used
.
Can
be
called
multiple
times
to
change
the
connection
routine
for
--
subsequent
calls
to
Attach_Handler
.
end
Interfaces
.
VxWorks
.
Int_Connection
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment