Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
ab139902
Commit
ab139902
authored
Mar 29, 2017
by
davidcunado-arm
Committed by
GitHub
Mar 29, 2017
Browse files
Merge pull request #870 from douglas-raillard-arm/dr/remove_asm_signed_test
Replace ASM signed tests with unsigned
parents
1ae5c8bb
768baf6e
Changes
5
Show whitespace changes
Inline
Side-by-side
lib/aarch32/cache_helpers.S
View file @
ab139902
...
...
@@ -118,7 +118,7 @@ loop1:
mov
r12
,
r2
,
LSR
r10
//
extract
cache
type
bits
from
clidr
and
r12
,
r12
,
#
7
//
mask
the
bits
for
current
cache
only
cmp
r12
,
#
2
//
see
what
cache
we
have
at
this
level
bl
t
level_done
//
no
cache
or
only
instruction
cache
at
this
level
bl
o
level_done
//
no
cache
or
only
instruction
cache
at
this
level
stcopr
r1
,
CSSELR
//
select
current
cache
level
in
csselr
isb
//
isb
to
sych
the
new
cssr
&c
sidr
...
...
@@ -138,14 +138,14 @@ loop3:
blx
r6
subs
r7
,
r7
,
#
1
//
decrement
the
set
number
b
ge
loop3
b
hs
loop3
subs
r9
,
r9
,
#
1
//
decrement
the
way
number
b
ge
loop2
b
hs
loop2
level_done
:
add
r1
,
r1
,
#
2
//
increment
the
cache
number
cmp
r3
,
r1
dsb
sy
//
ensure
completion
of
previous
cache
maintenance
instruction
b
gt
loop1
b
hi
loop1
mov
r6
,
#
0
stcopr
r6
,
CSSELR
//
select
cache
level
0
in
csselr
...
...
lib/aarch32/misc_helpers.S
View file @
ab139902
...
...
@@ -170,7 +170,7 @@ func memcpy4
/*
copy
4
bytes
at
a
time
*/
m_loop4
:
cmp
r2
,
#
4
bl
t
m_loop1
bl
o
m_loop1
ldr
r3
,
[
r1
],
#
4
str
r3
,
[
r0
],
#
4
sub
r2
,
r2
,
#
4
...
...
lib/aarch64/cache_helpers.S
View file @
ab139902
...
...
@@ -119,7 +119,7 @@ loop1:
lsr
x1
,
x0
,
x2
//
extract
cache
type
bits
from
clidr
and
x1
,
x1
,
#
7
//
mask
the
bits
for
current
cache
only
cmp
x1
,
#
2
//
see
what
cache
we
have
at
this
level
b.l
t
level_done
//
nothing
to
do
if
no
cache
or
icache
b.l
o
level_done
//
nothing
to
do
if
no
cache
or
icache
msr
csselr_el1
,
x10
//
select
current
cache
level
in
csselr
isb
//
isb
to
sych
the
new
cssr
&c
sidr
...
...
@@ -144,10 +144,10 @@ loop3_\_op:
orr
w11
,
w9
,
w7
//
combine
cache
,
way
and
set
number
dc
\
_op
,
x11
subs
w7
,
w7
,
w17
//
decrement
set
number
b.
ge
loop3_
\
_op
b.
hs
loop3_
\
_op
subs
x9
,
x9
,
x16
//
decrement
way
number
b.
ge
loop2_
\
_op
b.
hs
loop2_
\
_op
b
level_done
.
endm
...
...
@@ -155,7 +155,7 @@ loop3_\_op:
level_done
:
add
x10
,
x10
,
#
2
//
increment
cache
number
cmp
x3
,
x10
b.
gt
loop1
b.
hi
loop1
msr
csselr_el1
,
xzr
//
select
cache
level
0
in
csselr
dsb
sy
//
barrier
to
complete
final
cache
operation
isb
...
...
lib/cpus/aarch32/cpu_helpers.S
View file @
ab139902
...
...
@@ -157,7 +157,7 @@ func get_cpu_ops_ptr
1
:
/
*
Check
if
we
have
reached
end
of
list
*/
cmp
r4
,
r5
b
ge
error_exit
b
hs
error_exit
/
*
load
the
midr
from
the
cpu_ops
*/
ldr
r1
,
[
r4
],
#
CPU_OPS_SIZE
...
...
plat/nvidia/tegra/common/aarch64/tegra_helpers.S
View file @
ab139902
...
...
@@ -289,7 +289,7 @@ func plat_reset_handler
mov
x2
,
#
BL31_SIZE
_loop16
:
cmp
x2
,
#
16
b.l
t
_loop1
b.l
o
_loop1
ldp
x3
,
x4
,
[
x1
],
#
16
stp
x3
,
x4
,
[
x0
],
#
16
sub
x2
,
x2
,
#
16
...
...
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