From: Ryan Murray <rmurray@debian.org>
To: linux-mips@linux-mips.org
Cc: libc-alpha@sources.redhat.com
Subject: [patch] userspace mcontext_t doesn't match what kernel returns
Date: Tue, 10 Sep 2002 20:28:32 -0700 [thread overview]
Message-ID: <20020911032832.GA1500@cyberhqz.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 863 bytes --]
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 #2: Type: application/pgp-signature, Size: 189 bytes --]
next reply other threads:[~2002-09-11 3:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-11 3:28 Ryan Murray [this message]
2002-09-15 19:06 ` [patch] userspace mcontext_t doesn't match what kernel returns Ralf Baechle
2002-09-15 19:16 ` Daniel Jacobowitz
2002-09-15 23:08 ` Ralf Baechle
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020911032832.GA1500@cyberhqz.com \
--to=rmurray@debian.org \
--cc=libc-alpha@sources.redhat.com \
--cc=linux-mips@linux-mips.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox