projects
/
project
/
bcm63xx
/
atf.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e715e67
)
Use a callee-saved register to be AAPCS-compliant
author
dp-arm
<dimitris.papastamos@arm.com>
Fri, 5 May 2017 11:21:03 +0000
(12:21 +0100)
committer
dp-arm
<dimitris.papastamos@arm.com>
Wed, 24 May 2017 13:23:08 +0000
(14:23 +0100)
x8 is not a callee-saved register and can be corrupted.
Use x19 instead to be AAPCS-compliant.
Fixes ARM-software/tf-issues#478
Change-Id: Ib4f114c36f4c11351ae856f953c45dca92b27c3b
Signed-off-by: dp-arm <dimitris.papastamos@arm.com>
lib/cpus/aarch64/cpu_helpers.S
patch
|
blob
|
history
diff --git
a/lib/cpus/aarch64/cpu_helpers.S
b/lib/cpus/aarch64/cpu_helpers.S
index 7ad0bc755961faa64c4ad5bdd1833743bb89fc4a..238455341d4df5ae82c7a52f98c4fa0449e1c1a5 100644
(file)
--- a/
lib/cpus/aarch64/cpu_helpers.S
+++ b/
lib/cpus/aarch64/cpu_helpers.S
@@
-259,8
+259,8
@@
func print_errata_status
/*
* Printing errata status requires atomically testing the printed flag.
*/
- stp x
8
, x30, [sp, #-16]!
- mov x
8
, x0
+ stp x
19
, x30, [sp, #-16]!
+ mov x
19
, x0
/*
* Load pointers to errata lock and printed flag. Call
@@
-270,8
+270,8
@@
func print_errata_status
ldr x0, [x1, #CPU_ERRATA_LOCK]
ldr x1, [x1, #CPU_ERRATA_PRINTED]
bl errata_needs_reporting
- mov x1, x
8
- ldp x
8
, x30, [sp], #16
+ mov x1, x
19
+ ldp x
19
, x30, [sp], #16
cbnz x0, .Lprint
#endif
.Lnoprint: