[PATCH] ppc64: fix semtimedop compat syscall

Anton Blanchard anton at samba.org
Wed Mar 23 04:51:25 EST 2005


 
Hi,

> Ok.  The scheme used on sparc64 (and I was under the impression
> that a discussion last year left us with the decision that zero
> extending all args by default, then fixing up the differences was
> the way to go) is to zero extend all the registers at 32-bit syscall
> dispatch, then we have fixups for the sign-extension cases.

That was my understanding, on ppc64 we zero extend all 6 arguments.

> > I have an old script that generates the s390 compat_wrapper.S file
> > from a header file holding all C prototypes for the compat_sys_*
> > functions. Maybe we can find a way to make that generic enough
> > for all seven compat architectures.
> 
> That's a great idea.  This thing could spit out a set of macros
> that an arch-specific ASM stub could end up using.

I like the idea too.

Anton



More information about the Linuxppc64-dev mailing list