Linux-kernel mailing list archive 1998-10,: sigcontext_struct -> sigcontext change (When?)

# sigcontext_struct -> sigcontext change (When?)

Martin Imrisek (modulus@interlog.com)
Tue, 10 Mar 1998 10:21:01 +0000 ( )

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Martin Imrisek: "ide0: unexpected interrupt, status=0xd0"
- Previous message: Chris Wedgwood: "Re: Avoiding SMP"
- Next in thread: David Wragg: "Re: sigcontext_struct -> sigcontext change (When?)"
- Reply: David Wragg: "Re: sigcontext_struct -> sigcontext change (When?)"

Hi Kernel Hackers:

I'm trying to trace the following name change sigcontext_struct to
sigcontext in sigcontext.h. There's some software I have that uses this
structure and fails to build under the >2.1.7x kernels, and I just want to
trace this so we can #ifdef around this in order to get this to compile
under both 2.0.xx and 2.1.xx kernels.

------------ Forwarded text

Here's my /usr/include/asm/sigcontext.h file. Notice the difference in the name
of the struct sigcontext_struct, versus your sigcontext. So when did this
change occur?

#ifndef _ASMi386_SIGCONTEXT_H
#define _ASMi386_SIGCONTEXT_H

/*
* As documented in the iBCS2 standard..
*
* The first part of "struct _fpstate" is just the
* normal i387 hardware setup, the extra "status"
* word is used to save the coprocessor status word
* before entering the handler.
*/
struct _fpreg {
unsigned short significand[4];
unsigned short exponent;
};

struct _fpstate {
unsigned long cw,
sw,
tag,
ipoff,
cssel,
dataoff,
datasel;
struct _fpreg _st[8];
unsigned long status;
};

struct sigcontext_struct {
unsigned short gs, __gsh;
unsigned short fs, __fsh;
unsigned short es, __esh;
unsigned short ds, __dsh;
unsigned long edi;
unsigned long esi;
unsigned long ebp;
unsigned long esp;
unsigned long ebx;
unsigned long edx;
unsigned long ecx;
unsigned long eax;
unsigned long trapno;
unsigned long err;
unsigned long eip;
unsigned short cs, __csh;
unsigned long eflags;
unsigned long esp_at_signal;
unsigned short ss, __ssh;
struct _fpstate * fpstate;
unsigned long oldmask;
unsigned long cr2;
};

#endif

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

- Next message: Martin Imrisek: "ide0: unexpected interrupt, status=0xd0"
- Previous message: Chris Wedgwood: "Re: Avoiding SMP"
- Next in thread: David Wragg: "Re: sigcontext_struct -> sigcontext change (When?)"
- Reply: David Wragg: "Re: sigcontext_struct -> sigcontext change (When?)"