Commit 21b2841d authored by Uwe Kleine-König's avatar Uwe Kleine-König

ARM: zImage: fix comments for cache_on, cache_off and cache_clean_flush

This adds missing registers to the list of corrupted registers and
removes a wrong comment about r9 on entry

While at it the formatting of the comment to cache_off is changed to
resemble the other two.
Acked-by: default avatarEric Miao <eric.miao@canonical.com>
Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
parent 63fa7187
...@@ -339,9 +339,8 @@ params: ldr r0, =params_phys ...@@ -339,9 +339,8 @@ params: ldr r0, =params_phys
* r4 = kernel execution address * r4 = kernel execution address
* r7 = architecture number * r7 = architecture number
* r8 = atags pointer * r8 = atags pointer
* r9 = run-time address of "start" (???)
* On exit, * On exit,
* r1, r2, r3, r9, r10, r12 corrupted * r0, r1, r2, r3, r9, r10, r12 corrupted
* This routine must preserve: * This routine must preserve:
* r4, r5, r6, r7, r8 * r4, r5, r6, r7, r8
*/ */
...@@ -777,8 +776,10 @@ proc_types: ...@@ -777,8 +776,10 @@ proc_types:
* Turn off the Cache and MMU. ARMv3 does not support * Turn off the Cache and MMU. ARMv3 does not support
* reading the control register, but ARMv4 does. * reading the control register, but ARMv4 does.
* *
* On exit, r0, r1, r2, r3, r9, r12 corrupted * On exit,
* This routine must preserve: r4, r6, r7 * r0, r1, r2, r3, r9, r12 corrupted
* This routine must preserve:
* r4, r6, r7
*/ */
.align 5 .align 5
cache_off: mov r3, #12 @ cache_off function cache_off: mov r3, #12 @ cache_off function
...@@ -851,7 +852,7 @@ __armv3_mmu_cache_off: ...@@ -851,7 +852,7 @@ __armv3_mmu_cache_off:
* Clean and flush the cache to maintain consistency. * Clean and flush the cache to maintain consistency.
* *
* On exit, * On exit,
* r1, r2, r3, r9, r11, r12 corrupted * r1, r2, r3, r9, r10, r11, r12 corrupted
* This routine must preserve: * This routine must preserve:
* r0, r4, r5, r6, r7 * r0, r4, r5, r6, r7
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment