mirror of
https://github.com/apache/nuttx.git
synced 2026-08-02 12:49:00 +00:00
arch/arm: fix infinite loop in test and clean cache operations
Update the destination register to r15 (PC) for test and clean operations, as specified by the ARM926EJ-S Technical Reference Manual (TRM). Using the wrong destination register prevented the loop condition from updating correctly, resulting in an infinite loop. Signed-off-by: Lwazi Dube <lwazeh@gmail.com>
This commit is contained in:
parent
5349a5ab0c
commit
81dc339415
1 changed files with 2 additions and 2 deletions
|
|
@ -199,7 +199,7 @@ up_clean_dcache:
|
|||
.type up_clean_dcache_all, function
|
||||
|
||||
up_clean_dcache_all:
|
||||
mrc p15, 0, r0, c7, c10, 3
|
||||
mrc p15, 0, r15, c7, c10, 3
|
||||
bne up_clean_dcache_all
|
||||
bx lr
|
||||
.size up_clean_dcache_all, . - up_clean_dcache_all
|
||||
|
|
@ -227,7 +227,7 @@ up_flush_dcache:
|
|||
.type up_flush_dcache_all, function
|
||||
|
||||
up_flush_dcache_all:
|
||||
mrc p15, 0, r0, c7, c14, 3
|
||||
mrc p15, 0, r15, c7, c14, 3
|
||||
bne up_flush_dcache_all
|
||||
bx lr
|
||||
.size up_flush_dcache_all, . - up_flush_dcache_all
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue