linux-mips
[Top] [All Lists]

[patch] userspace mcontext_t doesn't match what kernel returns

To: linux-mips@linux-mips.org
Subject: [patch] userspace mcontext_t doesn't match what kernel returns
From: Ryan Murray <rmurray@debian.org>
Date: Tue, 10 Sep 2002 20:28:32 -0700
Cc: libc-alpha@sources.redhat.com
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.4i
Hi,

The definition of mcontext_t in sysdeps/unix/sysv/linux/mips/sys/ucontext.h
does not match what the kernel copies to userspace (struct sigcontext).
alpha, ia64, and hppa have fixed this by typedefing one to the other in
sys/ucontext.h  The following patch accomplishes the same thing for mips.

-- 
Ryan Murray, Debian Developer (rmurray@cyberhqz.com, rmurray@debian.org)
The opinions expressed here are my own.

--- sysdeps/unix/sysv/linux/mips/sys/ucontext.h 2002-09-10 20:16:52.000000000 
-0700
+++ sysdeps/unix/sysv/linux/mips/sys/ucontext.h 2002-09-10 20:17:24.000000000 
-0700
@@ -61,11 +61,7 @@
 
 
 /* Context to describe whole processor state.  */
-typedef struct
-  {
-    gregset_t gregs;
-    fpregset_t fpregs;
-  } mcontext_t;
+typedef struct sigcontext mcontext_t;
 
 /* Userlevel context.  */
 typedef struct ucontext

Attachment: pgpnjJHFFTYuV.pgp
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>