* include/grub/symbol.h (ADDR): New macro. Replace all occurences of

=x with ADDR(x) in arm assembly.
	(END): New macro. Replace all .end with END.
This commit is contained in:
Vladimir Serbinenko 2013-11-13 01:04:56 +01:00
parent 16057d6bbb
commit 286551b4eb
5 changed files with 34 additions and 18 deletions

View file

@ -36,7 +36,7 @@
@ 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, ADDR(EXT_C(grub_arch_cache_dlinesz))
ldr r2, [r2]
sub r3, r2, #1 @ align "beg" to start of line
mvn r3, r3
@ -57,7 +57,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, ADDR(EXT_C(grub_arch_cache_ilinesz))
ldr r2, [r2]
sub r3, r2, #1 @ align "beg" to start of line
mvn r3, r3