powerpc Linux scv support and scv system call ABI proposal
Segher Boessenkool
segher at kernel.crashing.org
Thu Jan 30 03:29:47 AEDT 2020
On Wed, Jan 29, 2020 at 05:19:19PM +0100, Florian Weimer wrote:
> * Segher Boessenkool:
> >> But GCC doesn't expose them as integers to C code, so you can't do much
> >> without them.
> >
> > Sure, it doesn't expose any other registers directly, either.
>
> I can use r0 & 1 with a register variable r0 to check a bit.
That is not reliable, or supported, and it *will* break. This is
explicit for local register asm, and global register asm is
underdefined.
> I don't
> think writing a similar check against a condition register is possible
> today.
That's right. You cannot express CCmode (MODE_CC) values in C at all.
Segher
More information about the Linuxppc-dev
mailing list