
Wolfgang Denk wd@denx.de wrote :
Kumar Gala galak@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