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
1bfa771e
Commit
1bfa771e
authored
Aug 22, 2007
by
Ralf Baechle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[MIPS] Polish <asm/edac.h>.
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
88eb4134
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
include/asm-mips/edac.h
include/asm-mips/edac.h
+8
-9
No files found.
include/asm-mips/edac.h
View file @
1bfa771e
...
...
@@ -9,8 +9,7 @@ static inline void atomic_scrub(void *va, u32 size)
unsigned
long
temp
;
u32
i
;
for
(
i
=
0
;
i
<
size
/
sizeof
(
unsigned
long
);
i
++
,
virt_addr
++
)
{
for
(
i
=
0
;
i
<
size
/
sizeof
(
unsigned
long
);
i
++
)
{
/*
* Very carefully read and write to memory atomically
* so we are interrupt, DMA and SMP safe.
...
...
@@ -19,16 +18,16 @@ static inline void atomic_scrub(void *va, u32 size)
*/
__asm__
__volatile__
(
" .set mips3
\n
"
"1: ll %0, %1 # atomic_add
\n
"
" ll %0, %1 # atomic_add
\n
"
" addu %0, $0
\n
"
" sc %0, %1
\n
"
" beqz %0, 1b
\n
"
" .set mips0
\n
"
" .set mips2
\n
"
"1: ll %0, %1 # atomic_scrub
\n
"
" addu %0, $0
\n
"
" sc %0, %1
\n
"
" beqz %0, 1b
\n
"
" .set mips0
\n
"
:
"=&r"
(
temp
),
"=m"
(
*
virt_addr
)
:
"m"
(
*
virt_addr
));
virt_addr
++
;
}
}
...
...
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