Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PPSi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
PPSi
Commits
f0e32add
Commit
f0e32add
authored
Feb 11, 2015
by
Adam Wujek
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
arch-wrs: check HAL's shmem version
Signed-off-by:
Adam Wujek
<
adam.wujek@cern.ch
>
parent
b05ba577
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
wrs-startup.c
arch-wrs/wrs-startup.c
+8
-0
No files found.
arch-wrs/wrs-startup.c
View file @
f0e32add
...
@@ -113,8 +113,16 @@ int main(int argc, char **argv)
...
@@ -113,8 +113,16 @@ int main(int argc, char **argv)
"shared memory
\n
"
);
"shared memory
\n
"
);
exit
(
1
);
exit
(
1
);
}
}
if
(
hal_head
->
version
!=
HAL_SHMEM_VERSION
)
{
pp_printf
(
"ppsi: unknown HAL's shm version %i "
"(known is %i)
\n
"
,
hal_head
->
version
,
HAL_SHMEM_VERSION
);
exit
(
1
);
}
h
=
(
void
*
)
hal_head
+
hal_head
->
data_off
;
h
=
(
void
*
)
hal_head
+
hal_head
->
data_off
;
hal_nports
=
h
->
nports
;
hal_nports
=
h
->
nports
;
hal_ports
=
wrs_shm_follow
(
hal_head
,
h
->
ports
);
hal_ports
=
wrs_shm_follow
(
hal_head
,
h
->
ports
);
/* And create your own channel, until we move to shmem too */
/* And create your own channel, until we move to shmem too */
...
...
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