Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 40479
b: refs/heads/master
c: a7aacdf
h: refs/heads/master
i:
  40477: 381754e
  40475: 67ae2be
  40471: 6b3c230
  40463: e536195
  40447: 88bcbb1
v: v3
  • Loading branch information
Albert Cahalan authored and Linus Torvalds committed Oct 30, 2006
1 parent bc73f39 commit 1ffdaf8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 202dd450246cd658e298a86dddca5592fcb898cd
refs/heads/master: a7aacdf9ea45bf6139cfd750e558a3dcbc6f16c3
5 changes: 5 additions & 0 deletions trunk/arch/x86_64/ia32/ia32_signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,11 @@ int ia32_setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
regs->rsp = (unsigned long) frame;
regs->rip = (unsigned long) ka->sa.sa_handler;

/* Make -mregparm=3 work */
regs->rax = sig;
regs->rdx = (unsigned long) &frame->info;
regs->rcx = (unsigned long) &frame->uc;

asm volatile("movl %0,%%ds" :: "r" (__USER32_DS));
asm volatile("movl %0,%%es" :: "r" (__USER32_DS));

Expand Down

0 comments on commit 1ffdaf8

Please sign in to comment.