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
ad83f139
Commit
ad83f139
authored
Feb 08, 2004
by
Russell King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM] Fix asm syntax for gcc3.
parent
6e286d48
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
56 additions
and
56 deletions
+56
-56
drivers/net/arm/ether1.c
drivers/net/arm/ether1.c
+56
-56
No files found.
drivers/net/arm/ether1.c
View file @
ad83f139
...
...
@@ -149,34 +149,34 @@ ether1_writebuffer (struct net_device *dev, void *data, unsigned int start, unsi
length
-=
thislen
;
__asm__
__volatile__
(
"subs %3, %3, #2
bmi 2f
1: ldr %0, [%1], #2
mov %0, %0, lsl #16
orr %0, %0, %0, lsr #16
str %0, [%2], #4
subs %3, %3, #2
bmi 2f
ldr %0, [%1], #2
mov %0, %0, lsl #16
orr %0, %0, %0, lsr #16
str %0, [%2], #4
subs %3, %3, #2
bmi 2f
ldr %0, [%1], #2
mov %0, %0, lsl #16
orr %0, %0, %0, lsr #16
str %0, [%2], #4
subs %3, %3, #2
bmi 2f
ldr %0, [%1], #2
mov %0, %0, lsl #16
orr %0, %0, %0, lsr #16
str %0, [%2], #4
subs %3, %3, #2
bpl 1b
2: adds %3, %3, #1
ldreqb %0, [%1]
"subs %3, %3, #2
\n
\
bmi 2f
\n
\
1: ldr %0, [%1], #2
\n
\
mov %0, %0, lsl #16
\n
\
orr %0, %0, %0, lsr #16
\n
\
str %0, [%2], #4
\n
\
subs %3, %3, #2
\n
\
bmi 2f
\n
\
ldr %0, [%1], #2
\n
\
mov %0, %0, lsl #16
\n
\
orr %0, %0, %0, lsr #16
\n
\
str %0, [%2], #4
\n
\
subs %3, %3, #2
\n
\
bmi 2f
\n
\
ldr %0, [%1], #2
\n
\
mov %0, %0, lsl #16
\n
\
orr %0, %0, %0, lsr #16
\n
\
str %0, [%2], #4
\n
\
subs %3, %3, #2
\n
\
bmi 2f
\n
\
ldr %0, [%1], #2
\n
\
mov %0, %0, lsl #16
\n
\
orr %0, %0, %0, lsr #16
\n
\
str %0, [%2], #4
\n
\
subs %3, %3, #2
\n
\
bpl 1b
\n
\
2: adds %3, %3, #1
\n
\
ldreqb %0, [%1]
\n
\
streqb %0, [%2]"
:
"=&r"
(
used
),
"=&r"
(
data
)
:
"r"
(
addr
),
"r"
(
thislen
),
"1"
(
data
));
...
...
@@ -211,34 +211,34 @@ ether1_readbuffer (struct net_device *dev, void *data, unsigned int start, unsig
length
-=
thislen
;
__asm__
__volatile__
(
"subs %3, %3, #2
bmi 2f
1: ldr %0, [%2], #4
strb %0, [%1], #1
mov %0, %0, lsr #8
strb %0, [%1], #1
subs %3, %3, #2
bmi 2f
ldr %0, [%2], #4
strb %0, [%1], #1
mov %0, %0, lsr #8
strb %0, [%1], #1
subs %3, %3, #2
bmi 2f
ldr %0, [%2], #4
strb %0, [%1], #1
mov %0, %0, lsr #8
strb %0, [%1], #1
subs %3, %3, #2
bmi 2f
ldr %0, [%2], #4
strb %0, [%1], #1
mov %0, %0, lsr #8
strb %0, [%1], #1
subs %3, %3, #2
bpl 1b
2: adds %3, %3, #1
ldreqb %0, [%2]
"subs %3, %3, #2
\n
\
bmi 2f
\n
\
1: ldr %0, [%2], #4
\n
\
strb %0, [%1], #1
\n
\
mov %0, %0, lsr #8
\n
\
strb %0, [%1], #1
\n
\
subs %3, %3, #2
\n
\
bmi 2f
\n
\
ldr %0, [%2], #4
\n
\
strb %0, [%1], #1
\n
\
mov %0, %0, lsr #8
\n
\
strb %0, [%1], #1
\n
\
subs %3, %3, #2
\n
\
bmi 2f
\n
\
ldr %0, [%2], #4
\n
\
strb %0, [%1], #1
\n
\
mov %0, %0, lsr #8
\n
\
strb %0, [%1], #1
\n
\
subs %3, %3, #2
\n
\
bmi 2f
\n
\
ldr %0, [%2], #4
\n
\
strb %0, [%1], #1
\n
\
mov %0, %0, lsr #8
\n
\
strb %0, [%1], #1
\n
\
subs %3, %3, #2
\n
\
bpl 1b
\n
\
2: adds %3, %3, #1
\n
\
ldreqb %0, [%2]
\n
\
streqb %0, [%1]"
:
"=&r"
(
used
),
"=&r"
(
data
)
:
"r"
(
addr
),
"r"
(
thislen
),
"1"
(
data
));
...
...
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