Re: Semaphore assembly-code bug

From: Andi Kleen
Date: Fri Oct 29 2004 - 10:47:13 EST


> Btw, this is another case where we _really_ want "asmlinkage" to mean that
> the compiler does not own the argument stack. Is there any chance of
> getting a function attribute like that into future versions of gcc?
> Richard, Jan, Andi? Or does it already exist somewhere?

How about just using __attribute__((regparm(1))) ? Then the
problem doesn't appear.
Would be faster too. It should work reliable on all supported compilers.

-Andi

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/