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
9f643c74
Commit
9f643c74
authored
Oct 04, 2003
by
Deepak Saxena
Committed by
Russell King
Oct 04, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM PATCH] 1624/1: BE support for io-readsl-armv4.S, io-reads-armv4.S, io-writesw-armv4.S
Patch from Deepak Saxena
parent
48a712c4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
83 additions
and
33 deletions
+83
-33
arch/arm/lib/io-readsl-armv4.S
arch/arm/lib/io-readsl-armv4.S
+49
-1
arch/arm/lib/io-readsw-armv4.S
arch/arm/lib/io-readsw-armv4.S
+15
-8
arch/arm/lib/io-writesw-armv4.S
arch/arm/lib/io-writesw-armv4.S
+19
-24
No files found.
arch/arm/lib/io-readsl-armv4.S
View file @
9f643c74
...
...
@@ -9,7 +9,6 @@
*/
#include <linux/linkage.h>
#include <asm/assembler.h>
#include <asm/hardware.h>
/*
*
Note
that
some
reads
can
be
aligned
on
half
-
word
boundaries
.
...
...
@@ -31,6 +30,10 @@ ENTRY(__raw_readsl)
blt
4
f
bgt
6
f
#ifndef __ARMEB__
/
*
little
endian
code
*/
strh
ip
,
[
r1
],
#
2
mov
ip
,
ip
,
lsr
#
16
3
:
subs
r2
,
r2
,
#
1
...
...
@@ -68,3 +71,48 @@ ENTRY(__raw_readsl)
strb
ip
,
[
r1
]
mov
pc
,
lr
#else
/
*
big
endian
code
*/
mov
r3
,
ip
,
lsr
#
16
strh
r3
,
[
r1
],
#
2
3
:
mov
r3
,
ip
,
lsl
#
16
subs
r2
,
r2
,
#
1
ldrne
ip
,
[
r0
]
orrne
r3
,
r3
,
ip
,
lsr
#
16
strne
r3
,
[
r1
],
#
4
bne
3
b
strh
ip
,
[
r1
],
#
2
mov
pc
,
lr
4
:
mov
r3
,
ip
,
lsr
#
24
strb
r3
,
[
r1
],
#
1
mov
r3
,
ip
,
lsr
#
8
strh
r3
,
[
r1
],
#
2
5
:
mov
r3
,
ip
,
lsl
#
24
subs
r2
,
r2
,
#
1
ldrne
ip
,
[
r0
]
orrne
r3
,
r3
,
ip
,
lsr
#
8
strne
r3
,
[
r1
],
#
4
bne
5
b
strb
ip
,
[
r1
],
#
1
mov
pc
,
lr
6
:
mov
r3
,
ip
,
lsr
#
24
strb
r3
,
[
r1
],
#
1
7
:
mov
r3
,
ip
,
lsl
#
8
subs
r2
,
r2
,
#
1
ldrne
ip
,
[
r0
]
orrne
r3
,
r3
,
ip
,
lsr
#
24
strne
r3
,
[
r1
],
#
4
bne
7
b
mov
r3
,
ip
,
lsr
#
8
strh
r3
,
[
r1
],
#
2
strb
ip
,
[
r1
],
#
1
mov
pc
,
lr
#endif
arch/arm/lib/io-readsw-armv4.S
View file @
9f643c74
...
...
@@ -9,7 +9,14 @@
*/
#include <linux/linkage.h>
#include <asm/assembler.h>
#include <asm/hardware.h>
.
macro
pack
,
rd
,
hw1
,
hw2
#ifndef __ARMEB__
orr
\
rd
,
\
hw1
,
\
hw2
,
lsl
#
16
#else
orr
\
rd
,
\
hw2
,
\
hw1
,
lsl
#
16
#endif
.
endm
.
insw_bad_alignment
:
adr
r0
,
.
insw_bad_align_msg
...
...
@@ -41,19 +48,19 @@ ENTRY(__raw_readsw)
.
insw_8_lp
:
ldrh
r3
,
[
r0
]
ldrh
r4
,
[
r0
]
orr
r3
,
r3
,
r4
,
lsl
#
16
pack
r3
,
r3
,
r4
ldrh
r4
,
[
r0
]
ldrh
r5
,
[
r0
]
orr
r4
,
r4
,
r5
,
lsl
#
16
pack
r4
,
r4
,
r5
ldrh
r5
,
[
r0
]
ldrh
ip
,
[
r0
]
orr
r5
,
r5
,
ip
,
lsl
#
16
pack
r5
,
r5
,
ip
ldrh
ip
,
[
r0
]
ldrh
lr
,
[
r0
]
orr
ip
,
ip
,
lr
,
lsl
#
16
pack
ip
,
ip
,
lr
stmia
r1
!,
{
r3
-
r5
,
ip
}
...
...
@@ -68,11 +75,11 @@ ENTRY(__raw_readsw)
ldrh
r3
,
[
r0
]
ldrh
r4
,
[
r0
]
orr
r3
,
r3
,
r4
,
lsl
#
16
pack
r3
,
r3
,
r4
ldrh
r4
,
[
r0
]
ldrh
ip
,
[
r0
]
orr
r4
,
r4
,
ip
,
lsl
#
16
pack
r4
,
r4
,
ip
stmia
r1
!,
{
r3
,
r4
}
...
...
@@ -81,7 +88,7 @@ ENTRY(__raw_readsw)
ldrh
r3
,
[
r0
]
ldrh
ip
,
[
r0
]
orr
r3
,
r3
,
ip
,
lsl
#
16
pack
r3
,
r3
,
ip
str
r3
,
[
r1
],
#
4
...
...
arch/arm/lib/io-writesw-armv4.S
View file @
9f643c74
...
...
@@ -9,7 +9,18 @@
*/
#include <linux/linkage.h>
#include <asm/assembler.h>
#include <asm/hardware.h>
.
macro
outword
,
rd
#ifndef __ARMEB__
strh
\
rd
,
[
r0
]
mov
\
rd
,
\
rd
,
lsr
#
16
strh
\
rd
,
[
r0
]
#else
mov
lr
,
\
rd
,
lsr
#
16
strh
lr
,
[
r0
]
strh
\
rd
,
[
r0
]
#endif
.
endm
.
outsw_bad_alignment
:
adr
r0
,
.
outsw_bad_align_msg
...
...
@@ -40,20 +51,10 @@ ENTRY(__raw_writesw)
bmi
.
no_outsw_8
.
outsw_8_lp
:
ldmia
r1
!,
{
r3
,
r4
,
r5
,
ip
}
strh
r3
,
[
r0
]
mov
r3
,
r3
,
lsr
#
16
strh
r3
,
[
r0
]
strh
r4
,
[
r0
]
mov
r4
,
r4
,
lsr
#
16
strh
r4
,
[
r0
]
strh
r5
,
[
r0
]
mov
r5
,
r5
,
lsr
#
16
strh
r5
,
[
r0
]
strh
ip
,
[
r0
]
mov
ip
,
ip
,
lsr
#
16
strh
ip
,
[
r0
]
outword
r3
outword
r4
outword
r5
outword
ip
subs
r2
,
r2
,
#
8
bpl
.
outsw_8_lp
...
...
@@ -64,20 +65,14 @@ ENTRY(__raw_writesw)
beq
.
no_outsw_4
ldmia
r1
!,
{
r3
,
ip
}
strh
r3
,
[
r0
]
mov
r3
,
r3
,
lsr
#
16
strh
r3
,
[
r0
]
strh
ip
,
[
r0
]
mov
ip
,
ip
,
lsr
#
16
strh
ip
,
[
r0
]
outword
r3
outword
ip
.
no_outsw_4
:
tst
r2
,
#
2
beq
.
no_outsw_2
ldr
r3
,
[
r1
],
#
4
strh
r3
,
[
r0
]
mov
r3
,
r3
,
lsr
#
16
strh
r3
,
[
r0
]
outword
r3
.
no_outsw_2
:
tst
r2
,
#
1
ldrneh
r3
,
[
r1
]
...
...
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