
24 May
2007
24 May
'07
10:04 p.m.
On 5/24/07, Wolfgang Denk wd@denx.de wrote:
I never used this assembler trickery before myself. So far, I only played with the C variant of it. Like that:
I just tried to imitate the cond_syscall() macro in the Linux kernel. Your C variant is perhaps better than the asm trickery -- cond_syscall() is defined in asm/unistd.h so I suppose it might be arch-specific. The attribute syntax is of course gcc-specific, but u-boot doesn't support other compilers anyway, does it?
The problem I ran into with the C variant was with type conflicts of the function declarations and argument conflicts that I could not find a clean solution to. Without these type conflicts it would have worked.
-Jeff