All of lore.kernel.org
 help / color / mirror / Atom feed
* (no subject)
@ 2002-10-26 19:48 Zajerko-McKee, Nick
  2002-10-26 20:08 ` your mail Daniel Jacobowitz
  2002-10-26 20:32 ` Greg Lindahl
  0 siblings, 2 replies; 3+ messages in thread
From: Zajerko-McKee, Nick @ 2002-10-26 19:48 UTC (permalink / raw)
  To: 'linux-mips@linux-mips.org'

Hi,

I'm porting some code from x86 to mips(32) and noticed that in
include/asm-mips/siginfo.h differs from include/asm-i386/siginfo.h in the
order of elements of the sigchld structure.  Was this an oversight or a
design decision?  I would think that it would be desirable to be almost the
same as the x86 for userland ease of portability...

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

* Re: your mail
  2002-10-26 19:48 Zajerko-McKee, Nick
@ 2002-10-26 20:08 ` Daniel Jacobowitz
  2002-10-26 20:32 ` Greg Lindahl
  1 sibling, 0 replies; 3+ messages in thread
From: Daniel Jacobowitz @ 2002-10-26 20:08 UTC (permalink / raw)
  To: Zajerko-McKee, Nick; +Cc: 'linux-mips@linux-mips.org'

On Sat, Oct 26, 2002 at 03:48:27PM -0400, Zajerko-McKee, Nick wrote:
> Hi,
> 
> I'm porting some code from x86 to mips(32) and noticed that in
> include/asm-mips/siginfo.h differs from include/asm-i386/siginfo.h in the
> order of elements of the sigchld structure.  Was this an oversight or a
> design decision?  I would think that it would be desirable to be almost the
> same as the x86 for userland ease of portability...

It's probably for compatibility with that other MIPS operating system -
IRIX.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer

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

* Re: your mail
  2002-10-26 19:48 Zajerko-McKee, Nick
  2002-10-26 20:08 ` your mail Daniel Jacobowitz
@ 2002-10-26 20:32 ` Greg Lindahl
  1 sibling, 0 replies; 3+ messages in thread
From: Greg Lindahl @ 2002-10-26 20:32 UTC (permalink / raw)
  To: 'linux-mips@linux-mips.org'

On Sat, Oct 26, 2002 at 03:48:27PM -0400, Zajerko-McKee, Nick wrote:

> I'm porting some code from x86 to mips(32) and noticed that in
> include/asm-mips/siginfo.h differs from include/asm-i386/siginfo.h in the
> order of elements of the sigchld structure.  Was this an oversight or a
> design decision?  I would think that it would be desirable to be almost the
> same as the x86 for userland ease of portability...

User programs normally get recompiled, so anything using the proper
includes IS portable.

The issue only appears if you are using binary translation of x86
programs on mips. For example, this is one:

http://www.transitives.com/products.htm

For this, you need to write a system call translation layer which
rearranges things appropriately. An existing example is the o32 layer
in mips64, and soon the n32 layer in mips64.

-- greg

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

end of thread, other threads:[~2002-10-26 20:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-26 19:48 Zajerko-McKee, Nick
2002-10-26 20:08 ` your mail Daniel Jacobowitz
2002-10-26 20:32 ` Greg Lindahl

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.