aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/os-Linux/skas/process.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/um/os-Linux/skas/process.c')
-rw-r--r--arch/um/os-Linux/skas/process.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/um/os-Linux/skas/process.c b/arch/um/os-Linux/skas/process.c
index 441e4ba074f4..d531879a4617 100644
--- a/arch/um/os-Linux/skas/process.c
+++ b/arch/um/os-Linux/skas/process.c
@@ -414,7 +414,7 @@ void userspace(struct uml_pt_regs *regs)
414 if (WIFSTOPPED(status)) { 414 if (WIFSTOPPED(status)) {
415 int sig = WSTOPSIG(status); 415 int sig = WSTOPSIG(status);
416 416
417 ptrace(PTRACE_GETSIGINFO, pid, 0, &si); 417 ptrace(PTRACE_GETSIGINFO, pid, 0, (struct siginfo *)&si);
418 418
419 switch (sig) { 419 switch (sig) {
420 case SIGSEGV: 420 case SIGSEGV:
@@ -422,7 +422,7 @@ void userspace(struct uml_pt_regs *regs)
422 !ptrace_faultinfo) { 422 !ptrace_faultinfo) {
423 get_skas_faultinfo(pid, 423 get_skas_faultinfo(pid,
424 &regs->faultinfo); 424 &regs->faultinfo);
425 (*sig_info[SIGSEGV])(SIGSEGV, &si, 425 (*sig_info[SIGSEGV])(SIGSEGV, (struct siginfo *)&si,
426 regs); 426 regs);
427 } 427 }
428 else handle_segv(pid, regs); 428 else handle_segv(pid, regs);
@@ -431,14 +431,14 @@ void userspace(struct uml_pt_regs *regs)
431 handle_trap(pid, regs, local_using_sysemu); 431 handle_trap(pid, regs, local_using_sysemu);
432 break; 432 break;
433 case SIGTRAP: 433 case SIGTRAP:
434 relay_signal(SIGTRAP, &si, regs); 434 relay_signal(SIGTRAP, (struct siginfo *)&si, regs);
435 break; 435 break;
436 case SIGVTALRM: 436 case SIGVTALRM:
437 now = os_nsecs(); 437 now = os_nsecs();
438 if (now < nsecs) 438 if (now < nsecs)
439 break; 439 break;
440 block_signals(); 440 block_signals();
441 (*sig_info[sig])(sig, &si, regs); 441 (*sig_info[sig])(sig, (struct siginfo *)&si, regs);
442 unblock_signals(); 442 unblock_signals();
443 nsecs = timer.it_value.tv_sec * 443 nsecs = timer.it_value.tv_sec *
444 UM_NSEC_PER_SEC + 444 UM_NSEC_PER_SEC +
@@ -452,7 +452,7 @@ void userspace(struct uml_pt_regs *regs)
452 case SIGFPE: 452 case SIGFPE:
453 case SIGWINCH: 453 case SIGWINCH:
454 block_signals(); 454 block_signals();
455 (*sig_info[sig])(sig, &si, regs); 455 (*sig_info[sig])(sig, (struct siginfo *)&si, regs);
456 unblock_signals(); 456 unblock_signals();
457 break; 457 break;
458 default: 458 default: