All of lore.kernel.org
 help / color / mirror / Atom feed
* [parisc-linux] HPUX syscall ABI?
@ 1999-08-01 19:50 Matthew Wilcox
  1999-08-02  3:32 ` Philipp Rumpf
  1999-08-02  6:08 ` LaMont Jones
  0 siblings, 2 replies; 9+ messages in thread
From: Matthew Wilcox @ 1999-08-01 19:50 UTC (permalink / raw)
  To: parisc-linux


I've just redefined the Linux syscall ABI again so we can
handle sys_mmap (which takes 6 arguments) cleanly.  I'm now
wondering what the HPUX syscall standard is.  I've searched
http://docs.hp.com:80/dynaweb/hpux11/dtdcen1a/b821/@Generic__BookView
(as mentioned earlier on this mailing list) without success.

For those interested; Linux syscalls now take the syscall number in r20,
take arguments in r26-r21, zero r1, r19-r26, r29 and r31 on exit, preserve
r3-r18, r27(dp) and r30(sp), clobber r2 and return the result in r28.
If it's in the range [-1024,0) then that's an error code, otherwise it's
the result.

ObRant: Why on earth define a register to be caller-saves but not allow it
to contain an argument?  Why force it onto the stack?

-- 
Matthew Wilcox <willy@bofh.ai>
"Windows and MacOS are products, contrived by engineers in the service of
specific companies. Unix, by contrast, is not so much a product as it is a
painstakingly compiled oral history of the hacker subculture." - N Stephenson

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~1999-08-02 16:50 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-08-01 19:50 [parisc-linux] HPUX syscall ABI? Matthew Wilcox
1999-08-02  3:32 ` Philipp Rumpf
1999-08-02  4:12   ` Jeffrey A Law
1999-08-02  4:21     ` Philipp Rumpf
1999-08-02  4:27       ` Jeffrey A Law
1999-08-02  6:08 ` LaMont Jones
1999-08-02  6:26   ` Matthew Wilcox
1999-08-02  8:36     ` LaMont Jones
1999-08-02 16:50     ` Jerry Huck

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.