
6 Dec
2006
6 Dec
'06
4:25 p.m.
In message 838DB856-592C-4D3E-B7C8-12234B5BB53B@kernel.crashing.org you 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 ...
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
What the gods would destroy they first submit to an IEEE standards
committee.