mirror of
git://git.musl-libc.org/musl
synced 2025-03-06 20:48:29 +01:00
use struct pt_regs * rather than void * for powerpc[64] sigcontext regs
this is to match the kernel and glibc interfaces. here, struct pt_regs is an incomplete type, but that's harmless, and if it's completed by inclusion of another header then members of the struct pointed to by the regs member can be accessed directly without going through a cast or intermediate pointer object.
This commit is contained in:
parent
c9f48cde0a
commit
c2518a8efb
2 changed files with 2 additions and 2 deletions
|
@ -28,7 +28,7 @@ struct sigcontext {
|
|||
int signal;
|
||||
unsigned long handler;
|
||||
unsigned long oldmask;
|
||||
void *regs;
|
||||
struct pt_regs *regs;
|
||||
};
|
||||
|
||||
typedef struct {
|
||||
|
|
|
@ -32,7 +32,7 @@ typedef struct sigcontext {
|
|||
int _pad0;
|
||||
unsigned long handler;
|
||||
unsigned long oldmask;
|
||||
void *regs;
|
||||
struct pt_regs *regs;
|
||||
gregset_t gp_regs;
|
||||
fpregset_t fp_regs;
|
||||
vrregset_t *v_regs;
|
||||
|
|
Loading…
Add table
Reference in a new issue