Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
8284034a
Commit
8284034a
authored
Dec 28, 2002
by
Russell King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM] Semaphore functions need to be memory barriers.
parent
8ef88d84
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
include/asm-arm/proc-armv/locks.h
include/asm-arm/proc-armv/locks.h
+4
-4
No files found.
include/asm-arm/proc-armv/locks.h
View file @
8284034a
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
" blmi " #fail \
" blmi " #fail \
: \
: \
: "r" (ptr), "I" (1) \
: "r" (ptr), "I" (1) \
: "ip", "lr", "cc"
);
\
: "ip", "lr", "cc"
, "memory");
\
})
})
#define __down_op_ret(ptr,fail) \
#define __down_op_ret(ptr,fail) \
...
@@ -48,7 +48,7 @@
...
@@ -48,7 +48,7 @@
" mov %0, ip" \
" mov %0, ip" \
: "=&r" (ret) \
: "=&r" (ret) \
: "r" (ptr), "I" (1) \
: "r" (ptr), "I" (1) \
: "ip", "lr", "cc"
);
\
: "ip", "lr", "cc"
, "memory");
\
ret; \
ret; \
})
})
...
@@ -94,7 +94,7 @@
...
@@ -94,7 +94,7 @@
" blne " #fail \
" blne " #fail \
: \
: \
: "r" (ptr), "I" (RW_LOCK_BIAS) \
: "r" (ptr), "I" (RW_LOCK_BIAS) \
: "ip", "lr", "cc"
);
\
: "ip", "lr", "cc"
, "memory");
\
})
})
#define __up_op_write(ptr,wake) \
#define __up_op_write(ptr,wake) \
...
@@ -112,7 +112,7 @@
...
@@ -112,7 +112,7 @@
" blcs " #wake \
" blcs " #wake \
: \
: \
: "r" (ptr), "I" (RW_LOCK_BIAS) \
: "r" (ptr), "I" (RW_LOCK_BIAS) \
: "ip", "lr", "cc"
);
\
: "ip", "lr", "cc"
, "memory");
\
})
})
#define __down_op_read(ptr,fail) \
#define __down_op_read(ptr,fail) \
...
...
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