* [parisc-linux] [PATCH] Correctly define mcontext for HPPA
@ 2002-11-19 6:07 Carlos O'Donell
0 siblings, 0 replies; 2+ messages in thread
From: Carlos O'Donell @ 2002-11-19 6:07 UTC (permalink / raw)
To: libc-alpha; +Cc: debian-glibc, parisc-linux
[-- Attachment #1: Type: text/plain, Size: 600 bytes --]
libc-alpha,
A machine context is really a signal context.
This has never worked correctly in hppa since the
kernel has always returned a sigcontext instead of
the struct defined in ucontext.h.
This definition change is made such that glibc
matches the ABI, rather than presenting an odd
view of mcontext_t.
The only thought I have...
- Is there enough information in our sigcontext to
implement [set,get,make,swap]context calls?
c.
---
2002-08-20 Carlos O'Donell <carlos@baldric.uwo.ca>
* sysdeps/unix/sysv/linux/hppa/sys/ucontext.h:
Define mcontext_t as a sigcontext.
[-- Attachment #2: 05-glibc23-hppa-mcontext --]
[-- Type: text/plain, Size: 581 bytes --]
diff -urN glibc-2.2.5/sysdeps/unix/sysv/linux/hppa/sys/ucontext.h glibc-2.2.5/sysdeps/unix/sysv/linux/hppa/sys/ucontext.h
--- glibc-2.2.5/sysdeps/unix/sysv/linux/hppa/sys/ucontext.h 2002-08-20 20:50:17.000000000 -0400
+++ glibc-2.2.5/sysdeps/unix/sysv/linux/hppa/sys/ucontext.h 2002-08-20 20:49:01.000000000 -0400
@@ -52,11 +52,7 @@
} fpregset_t;
/* 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
^ permalink raw reply [flat|nested] 2+ messages in thread* [parisc-linux] [PATCH] Correctly define mcontext for HPPA
@ 2002-11-19 6:07 Carlos O'Donell
0 siblings, 0 replies; 2+ messages in thread
From: Carlos O'Donell @ 2002-11-19 6:07 UTC (permalink / raw)
To: libc-alpha; +Cc: debian-glibc, parisc-linux
[-- Attachment #1: Type: text/plain, Size: 600 bytes --]
libc-alpha,
A machine context is really a signal context.
This has never worked correctly in hppa since the
kernel has always returned a sigcontext instead of
the struct defined in ucontext.h.
This definition change is made such that glibc
matches the ABI, rather than presenting an odd
view of mcontext_t.
The only thought I have...
- Is there enough information in our sigcontext to
implement [set,get,make,swap]context calls?
c.
---
2002-08-20 Carlos O'Donell <carlos@baldric.uwo.ca>
* sysdeps/unix/sysv/linux/hppa/sys/ucontext.h:
Define mcontext_t as a sigcontext.
[-- Attachment #2: 05-glibc23-hppa-mcontext --]
[-- Type: text/plain, Size: 581 bytes --]
diff -urN glibc-2.2.5/sysdeps/unix/sysv/linux/hppa/sys/ucontext.h glibc-2.2.5/sysdeps/unix/sysv/linux/hppa/sys/ucontext.h
--- glibc-2.2.5/sysdeps/unix/sysv/linux/hppa/sys/ucontext.h 2002-08-20 20:50:17.000000000 -0400
+++ glibc-2.2.5/sysdeps/unix/sysv/linux/hppa/sys/ucontext.h 2002-08-20 20:49:01.000000000 -0400
@@ -52,11 +52,7 @@
} fpregset_t;
/* 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-11-19 6:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-19 6:07 [parisc-linux] [PATCH] Correctly define mcontext for HPPA Carlos O'Donell
-- strict thread matches above, loose matches on Subject: below --
2002-11-19 6:07 Carlos O'Donell
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.