[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Help needed: Porting IRAF to s390



Hello Ole,

On Mon, 05 May 2014 10:52:16 +0200
Ole Streicher <debian-devel@liska.ath.cx> wrote:

[snip]

> Since I have no experience with s390 machines and no glue at all for
> their assembler and the (C) calling conventions: could someone help me here?

The s390(x) calling convention is that function parameters are passed in registers
R2-R6. Register 2 is used for the return code.

See "Function calling sequence" in the s390x (64 bit) ABI:

ftp://legacy.redhat.com/pub/redhat/linux/7.1/es/os/s390x/doc/lzsabi0.pdf

Here is the s390 (31 bit) ABI:

http://archive.download.redhat.com/pub/redhat/linux/7.2/de/os/s390/doc/l390abi0.pdf

Best Regards,
Michael


Reply to: