[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[microblaze-uclinux] U-BOOT compile problem



Hi John,

I look at your new function flush cache and you have problem in your code. 

In lib_microblaze/cache.c - flush_cache function.
If you don't use caches, your code looks like this.

                asm volatile ( 
 	                                :
 	                                : "r" (addr+i)
 	                                : "memory");
 	        return;

And gcc declares a fault.

microblaze-uclinux-gcc -g  -Os   -D__KERNEL__ -DTEXT_BASE=0x25fc0000 -I/opt/pentalogix/petalinux-v0.20-rc2/software/petalinux-dist/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/pentalogix/petalinux-v0.20-rc2/tools/linux-i386/microblaze-uclinux-tools/bin/../lib/gcc/microblaze-uclinux/3.4.1/include -pipe  -ffixed-r31 -D__microblaze__ -mno-xl-soft-mul -mxl-barrel-shift -mcpu=v5.00.a   -Wall -Wstrict-prototypes -I ../board/petalogix/microblaze-auto/ -c -o cache.o cache.c
cache.c: In function `flush_cache':
cache.c:44: error: parse error before ':' token
make[2]: *** [cache.o] Error 1
make[2]: Leaving directory `/opt/pentalogix/petalinux-v0.20-rc2/software/petalinux-dist/u-boot/lib_microblaze'
make[1]: *** [lib_microblaze/libmicroblaze.a] Error 2
make[1]: Leaving directory `/opt/pentalogix/petalinux-v0.20-rc2/software/petalinux-dist/u-boot'
make: *** [u-boot] Error 2

Best regards,
Michal Simek
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/