* grub-core/kern/arm/cache.S: Replace = with explicit litteral load.

This commit is contained in:
Vladimir Serbinenko 2013-11-13 06:23:32 +01:00
parent ea57de18f8
commit 8149861554
2 changed files with 11 additions and 2 deletions

View file

@ -1,3 +1,7 @@
2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/kern/arm/cache.S: Replace = with explicit litteral load.
2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
* include/grub/symbol.h (END) [__arm__]: New macros. Replace all .end

View file

@ -32,11 +32,16 @@
* Simple cache maintenance functions
*/
dlinesz_addr:
.long EXT_C(grub_arch_cache_dlinesz)
ilinesz_addr:
.long EXT_C(grub_arch_cache_ilinesz)
@ r0 - *beg (inclusive)
@ r1 - *end (exclusive)
clean_dcache_range:
@ Clean data cache for range to point-of-unification
ldr r2, =EXT_C(grub_arch_cache_dlinesz)
ldr r2, dlinesz_addr
ldr r2, [r2]
sub r3, r2, #1 @ align "beg" to start of line
mvn r3, r3
@ -57,7 +62,7 @@ clean_dcache_range:
@ r1 - *end (exclusive)
invalidate_icache_range:
@ Invalidate instruction cache for range to point-of-unification
ldr r2, =EXT_C(grub_arch_cache_ilinesz)
ldr r2, ilinesz_addr
ldr r2, [r2]
sub r3, r2, #1 @ align "beg" to start of line
mvn r3, r3