[U-Boot-Users] [PATCH] Functions added to extern for stand alone programs

Jeff Mann MannJ at embeddedplanet.com
Thu May 24 22:04:19 CEST 2007


> 
> On 5/24/07, Wolfgang Denk <wd at 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




More information about the U-Boot mailing list