Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
Ocarina
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
TASTE
Ocarina
Commits
9dd73496
Commit
9dd73496
authored
Mar 22, 2016
by
yoogx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Call Wait_Offset iff necessary
* Make request local variable a static one
parent
79120519
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
src/backends/ocarina-backends-po_hi_c-activity.adb
src/backends/ocarina-backends-po_hi_c-activity.adb
+8
-5
No files found.
src/backends/ocarina-backends-po_hi_c-activity.adb
View file @
9dd73496
...
...
@@ -6,7 +6,7 @@
-- --
-- B o d y --
-- --
-- Copyright (C) 2008-2009 Telecom ParisTech, 2010-201
5
ESA & ISAE. --
-- Copyright (C) 2008-2009 Telecom ParisTech, 2010-201
6
ESA & ISAE. --
-- --
-- Ocarina is free software; you can redistribute it and/or modify under --
-- terms of the GNU General Public License as published by the Free Soft- --
...
...
@@ -413,7 +413,8 @@ package body Ocarina.Backends.PO_HI_C.Activity is
(
Defining_Identifier
=>
Make_Defining_Identifier
(
Map_C_Variable_Name
(
F
,
Port_Request
=>
True
)),
Used_Type
=>
RE
(
RE_Request_T
));
Used_Type
=>
RE
(
RE_Request_T
),
Is_Static
=>
True
);
Append_Node_To_List
(
N
,
Declarations
);
Call_Parameters
:=
New_List
(
CTN
.
K_Parameter_List
);
...
...
@@ -845,7 +846,7 @@ package body Ocarina.Backends.PO_HI_C.Activity is
Make_List_Id
(
Make_Variable_Address
(
Make_Defining_Identifier
(
VN
(
V_Offset
))))),
W
Statements
);
Statements
);
end
if
;
end
Make_Wait_Offset
;
...
...
@@ -1240,8 +1241,6 @@ package body Ocarina.Backends.PO_HI_C.Activity is
-- behaviour of subprograms and does not have to worry
-- about sending and receiving ports.
Make_Wait_Offset
;
-- Get IN ports values and dequeue them
if
Has_In_Ports
(
E
)
then
...
...
@@ -1348,6 +1347,10 @@ package body Ocarina.Backends.PO_HI_C.Activity is
N
:=
CTU
.
Make_Call_Profile
(
RE
(
RE_Wait_Initialization
),
No_List
);
Append_Node_To_List
(
N
,
Statements
);
-- Call __po_hi_wait_offset() iff necessary
Make_Wait_Offset
;
-- Compute the next period after initialization, because
-- the period has passed after init.
...
...
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