about summary refs log tree commit diff
path: root/arch/powerpc64/bits/signal.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2019-10-19 15:53:43 -0400
committerRich Felker <dalias@aerifal.cx>2019-10-19 15:53:43 -0400
commitc2518a8efb6507f1b41c3b12e03b06f8f2317a1f (patch)
tree27bbe8b4cab90c4b0f1f7855333dad48e45baab0 /arch/powerpc64/bits/signal.h
parentc9f48cde0a22641ce3daf54596a9ecebdab91435 (diff)
downloadmusl-c2518a8efb6507f1b41c3b12e03b06f8f2317a1f.tar.gz
musl-c2518a8efb6507f1b41c3b12e03b06f8f2317a1f.tar.xz
musl-c2518a8efb6507f1b41c3b12e03b06f8f2317a1f.zip
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.
Diffstat (limited to 'arch/powerpc64/bits/signal.h')
-rw-r--r--arch/powerpc64/bits/signal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc64/bits/signal.h b/arch/powerpc64/bits/signal.h
index 4dec22a5..d5493b18 100644
--- a/arch/powerpc64/bits/signal.h
+++ b/arch/powerpc64/bits/signal.h
@@ -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;