Correctly define mcontext for HPPA
PATCH 1/1 Correctly define mcontext for HPPA
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 <[email protected]>
* sysdeps/unix/sysv/linux/hppa/sys/ucontext.h:
Define mcontext_t as a sigcontext.
sysdeps/unix/sysv/linux/hppa/sys/ucontext.h +1 -5
@@ -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