Skip to content

Commit

Permalink
m68k: merge the mmu and non-mmu versions of ucontext.h
Browse files Browse the repository at this point in the history
The non-mmu m68k setups can use the mm ucontext.h with no change.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
  • Loading branch information
Greg Ungerer committed Mar 24, 2009
1 parent 4330e17 commit 872065e
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 66 deletions.
33 changes: 29 additions & 4 deletions arch/m68k/include/asm/ucontext.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,30 @@
#ifdef __uClinux__
#include "ucontext_no.h"
#else
#include "ucontext_mm.h"
#ifndef _M68K_UCONTEXT_H
#define _M68K_UCONTEXT_H

typedef int greg_t;
#define NGREG 18
typedef greg_t gregset_t[NGREG];

typedef struct fpregset {
int f_fpcntl[3];
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
30 changes: 0 additions & 30 deletions arch/m68k/include/asm/ucontext_mm.h

This file was deleted.

32 changes: 0 additions & 32 deletions arch/m68k/include/asm/ucontext_no.h

This file was deleted.

0 comments on commit 872065e

Please sign in to comment.