mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-30 08:04:13 +08:00
3363c9b0ed
The first patch is to the 2.6 kernel include file (for m68knommu), to get rid of the conditional definitions, otherwise the structures have different sizes depending on whether there's an FPU or not. Signed-off-by: Greg Ungerer <gerg@uclinux.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
33 lines
564 B
C
33 lines
564 B
C
#ifndef _M68KNOMMU_UCONTEXT_H
|
|
#define _M68KNOMMU_UCONTEXT_H
|
|
|
|
typedef int greg_t;
|
|
#define NGREG 18
|
|
typedef greg_t gregset_t[NGREG];
|
|
|
|
typedef struct fpregset {
|
|
int f_pcr;
|
|
int f_psr;
|
|
int f_fpiaddr;
|
|
int f_fpregs[8][3];
|
|
} fpregset_t;
|
|
|
|
struct mcontext {
|
|
int version;
|
|
gregset_t gregs;
|
|
fpregset_t fpregs;
|
|
};
|
|
|
|
#define MCONTEXT_VERSION 2
|
|
|
|
struct ucontext {
|
|
unsigned long uc_flags;
|
|
struct ucontext *uc_link;
|
|
stack_t uc_stack;
|
|
struct mcontext uc_mcontext;
|
|
unsigned long uc_filler[80];
|
|
sigset_t uc_sigmask; /* mask last for extensibility */
|
|
};
|
|
|
|
#endif
|