Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci-2.6.23
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci-2.6.23
Commits
7300940f
Commit
7300940f
authored
Nov 17, 2005
by
Tony Lindgren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARM: OMAP: Manual merge after sync with mainline
Manual merge after sync with mainline
parent
995396f3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
include/asm-arm/atomic.h
include/asm-arm/atomic.h
+3
-2
No files found.
include/asm-arm/atomic.h
View file @
7300940f
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
#define __ASM_ARM_ATOMIC_H
#define __ASM_ARM_ATOMIC_H
#include <linux/config.h>
#include <linux/config.h>
#include <linux/
types
.h>
#include <linux/
compiler
.h>
typedef
struct
{
volatile
int
counter
;
}
atomic_t
;
typedef
struct
{
volatile
int
counter
;
}
atomic_t
;
...
@@ -83,11 +83,12 @@ static inline int atomic_sub_return(int i, atomic_t *v)
...
@@ -83,11 +83,12 @@ static inline int atomic_sub_return(int i, atomic_t *v)
static
inline
int
atomic_cmpxchg
(
atomic_t
*
ptr
,
int
old
,
int
new
)
static
inline
int
atomic_cmpxchg
(
atomic_t
*
ptr
,
int
old
,
int
new
)
{
{
u
32
oldval
,
res
;
u
nsigned
long
oldval
,
res
;
do
{
do
{
__asm__
__volatile__
(
"@ atomic_cmpxchg
\n
"
__asm__
__volatile__
(
"@ atomic_cmpxchg
\n
"
"ldrex %1, [%2]
\n
"
"ldrex %1, [%2]
\n
"
"mov %0, #0
\n
"
"teq %1, %3
\n
"
"teq %1, %3
\n
"
"strexeq %0, %4, [%2]
\n
"
"strexeq %0, %4, [%2]
\n
"
:
"=&r"
(
res
),
"=&r"
(
oldval
)
:
"=&r"
(
res
),
"=&r"
(
oldval
)
...
...
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