[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] [patch] errno corruption
Hi David,
David McCullough wrote:
> The real trouble with unistd.h is that the syscalls are done as macros
> and not inline functions. This means the can be included into the
> middle of some C code, and at the point the optimiser may move your
> declarations away from the asm, leaving the possibility for the value
> in the register to not be preserved and break your system call.
Can we do one of the silly tricks like putting do {} while 0; around it?
Or, is there any reason not to make them inline function calls?
Thanks,
John
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/