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
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Mock Turtle
Commits
e3833c69
Commit
e3833c69
authored
Oct 26, 2018
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw/fw: add a missing volatile.
parent
2dc0fde5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
mockturtle-rt.h
software/firmware/lib/mockturtle-rt.h
+1
-1
No files found.
software/firmware/lib/mockturtle-rt.h
View file @
e3833c69
...
...
@@ -828,7 +828,7 @@ static inline void smem_atomic_xor(int *p, int x)
* @param[in] p address on the shared memory
* @return the value before the set
*/
static
inline
int
smem_atomic_test_and_set
(
int
*
p
)
static
inline
int
smem_atomic_test_and_set
(
volatile
int
*
p
)
{
/* shift right translates range in bytes into range in words */
return
*
(
volatile
int
*
)(
p
+
(
TRTL_SMEM_TYPE_TST_SET
>>
2
));
...
...
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