Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
M
mock-turtle
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
hdl-core-lib
mock-turtle
Commits
a677cd01
Commit
a677cd01
authored
Sep 04, 2018
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libmockturtle.c:trtl_msg_sync: do not add filter (was never removed).
parent
2d328195
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
libmockturtle.c
software/lib/libmockturtle.c
+8
-1
No files found.
software/lib/libmockturtle.c
View file @
a677cd01
...
...
@@ -1062,21 +1062,28 @@ int trtl_msg_sync(struct trtl_dev *trtl,
{
struct
trtl_desc
*
wdesc
=
(
struct
trtl_desc
*
)
trtl
;
struct
polltrtl
p
;
#if 0
struct trtl_msg_filter f_sync = {
.flags = TRTL_MSG_FILTER_FLAG_HEADER,
.operation = TRTL_MSG_FILTER_AND,
.word_offset = 1, /* ATTENTION: sync_id in the message header */
.mask = 0xFFFF0000,
};
#endif
int
ret
;
msg_s
->
hdr
.
flags
|=
TRTL_HMQ_HEADER_FLAG_SYNC
;
f_sync
.
value
=
(
msg_s
->
hdr
.
sync_id
<<
16
);
#if 0
/* FIXME: commented out as the filter is never removed.
The filter shouldn't be needed as the synchronous messages are
always sent sequentially - if there is only one process. */
f_sync.value = (msg_s->hdr.sync_id << 16);
ret = trtl_hmq_filter_add(wdesc->trtl_sync, idx_cpu, idx_hmq,
&f_sync);
if (ret < 0)
return -1;
#endif
/* send message */
ret
=
trtl_msg_async_send
(
wdesc
->
trtl_sync
,
idx_cpu
,
idx_hmq
,
msg_s
,
1
);
...
...
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