[U-Boot-Users] 85xx sync to msync necessary?

Sam Song samsongshu at yahoo.com.cn
Thu Dec 7 02:47:43 CET 2006


Wolfgang Denk <wd at denx.de> wrote :

> Kumar Gala <galak at kernel.crashing.org> wrote:
> > 
> > sync and msync end up being the exact same thing
> > on e500.  Its better to leave the code in drivers
> > and such to use sync since then it will  
> > build on non-e500 cores.  But all binutils should
> > assemble sync and msync as the same instruction
for > > e500.
> 
> Verified on ELDK 4.x:
> 
> -> cat foo.c
> void do_sync() { asm ("sync"); }
> void do_msync() { asm ("msync"); }
> -> ppc_85xx-gcc -O -c foo.c
> -> ppc_85xx-objdump -D -S foo.o
> 
> foo.o:     file format elf32-powerpc
> 
> Disassembly of section .text:
> 
> 00000000 <do_sync>:
>    0:   7c 00 04 ac     sync    
>    4:   4e 80 00 20     blr
> 
> 00000008 <do_msync>:
>    8:   7c 00 04 ac     sync    
>    c:   4e 80 00 20     blr
> ...

Uh, clear enough:-)

Thanks a lot,

Sam


	

	
		
___________________________________________________________ 
Mp3疯狂搜-新歌热歌高速下
http://music.yahoo.com.cn/?source=mail_mailbox_footer




More information about the U-Boot mailing list