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
f9f1c8db
Commit
f9f1c8db
authored
Dec 15, 2016
by
Ralf Baechle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MIPS: IP22: Reformat inline assembler code to modern standards.
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
e4c64e6f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
20 deletions
+23
-20
arch/mips/mm/sc-ip22.c
arch/mips/mm/sc-ip22.c
+23
-20
No files found.
arch/mips/mm/sc-ip22.c
View file @
f9f1c8db
...
@@ -31,26 +31,29 @@ static inline void indy_sc_wipe(unsigned long first, unsigned long last)
...
@@ -31,26 +31,29 @@ static inline void indy_sc_wipe(unsigned long first, unsigned long last)
unsigned
long
tmp
;
unsigned
long
tmp
;
__asm__
__volatile__
(
__asm__
__volatile__
(
".set
\t
push
\t\t\t
# indy_sc_wipe
\n\t
"
" .set push # indy_sc_wipe
\n
"
".set
\t
noreorder
\n\t
"
" .set noreorder
\n
"
".set
\t
mips3
\n\t
"
" .set mips3
\n
"
".set
\t
noat
\n\t
"
" .set noat
\n
"
"mfc0
\t
%2, $12
\n\t
"
" mfc0 %2, $12
\n
"
"li
\t
$1, 0x80
\t\t\t
# Go 64 bit
\n\t
"
" li $1, 0x80 # Go 64 bit
\n
"
"mtc0
\t
$1, $12
\n\t
"
" mtc0 $1, $12
\n
"
"
\n
"
"dli
\t
$1, 0x9000000080000000
\n\t
"
" dli $1, 0x9000000080000000
\n
"
"or
\t
%0, $1
\t\t\t
# first line to flush
\n\t
"
" or %0, $1 # first line to flush
\n
"
"or
\t
%1, $1
\t\t\t
# last line to flush
\n\t
"
" or %1, $1 # last line to flush
\n
"
".set
\t
at
\n\t
"
" .set at
\n
"
"
\n
"
"1:
\t
sw
\t
$0, 0(%0)
\n\t
"
"1: sw $0, 0(%0)
\n
"
"bne
\t
%0, %1, 1b
\n\t
"
" bne %0, %1, 1b
\n
"
" daddu
\t
%0, 32
\n\t
"
" daddu %0, 32
\n
"
"
\n
"
"mtc0
\t
%2, $12
\t\t\t
# Back to 32 bit
\n\t
"
" mtc0 %2, $12 # Back to 32 bit
\n
"
"nop; nop; nop; nop;
\n\t
"
" nop # pipeline hazard
\n
"
".set
\t
pop"
" nop
\n
"
" nop
\n
"
" nop
\n
"
" .set pop
\n
"
:
"=r"
(
first
),
"=r"
(
last
),
"=&r"
(
tmp
)
:
"=r"
(
first
),
"=r"
(
last
),
"=&r"
(
tmp
)
:
"0"
(
first
),
"1"
(
last
));
:
"0"
(
first
),
"1"
(
last
));
}
}
...
...
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