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
Kirill Smelkov
linux
Commits
4d8c3efd
Commit
4d8c3efd
authored
Feb 11, 2003
by
Anton Blanchard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppc64: Fix nasty bug in cmpxchg where we would sign extend the old value.
parent
d7637891
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
include/asm-ppc64/system.h
include/asm-ppc64/system.h
+2
-2
No files found.
include/asm-ppc64/system.h
View file @
4d8c3efd
...
@@ -196,7 +196,7 @@ __xchg(volatile void *ptr, unsigned long x, int size)
...
@@ -196,7 +196,7 @@ __xchg(volatile void *ptr, unsigned long x, int size)
static
__inline__
unsigned
long
static
__inline__
unsigned
long
__cmpxchg_u32
(
volatile
int
*
p
,
int
old
,
int
new
)
__cmpxchg_u32
(
volatile
int
*
p
,
int
old
,
int
new
)
{
{
int
prev
;
unsigned
int
prev
;
__asm__
__volatile__
(
__asm__
__volatile__
(
EIEIO_ON_SMP
EIEIO_ON_SMP
...
@@ -218,7 +218,7 @@ __cmpxchg_u32(volatile int *p, int old, int new)
...
@@ -218,7 +218,7 @@ __cmpxchg_u32(volatile int *p, int old, int new)
static
__inline__
unsigned
long
static
__inline__
unsigned
long
__cmpxchg_u64
(
volatile
long
*
p
,
unsigned
long
old
,
unsigned
long
new
)
__cmpxchg_u64
(
volatile
long
*
p
,
unsigned
long
old
,
unsigned
long
new
)
{
{
int
prev
;
unsigned
long
prev
;
__asm__
__volatile__
(
__asm__
__volatile__
(
EIEIO_ON_SMP
EIEIO_ON_SMP
...
...
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