-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 55896 b: refs/heads/master c: c14b849 h: refs/heads/master v: v3
- Loading branch information
Jeff Dike
authored and
Linus Torvalds
committed
May 11, 2007
1 parent
9ee3c5a
commit 37d6854
Showing
11 changed files
with
181 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 2ea5bc5e5bb51492f189bba44045e0de7decf4a0 | ||
refs/heads/master: c14b84949e127560084c7c56b365931c71c60768 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
/* | ||
* Copyright (C) 2006 Jeff Dike (jdike@addtoit.com) | ||
* Copyright (C) 2006 Jeff Dike (jdike@{addtoit,linux.intel}.com) | ||
* Licensed under the GPL | ||
*/ | ||
|
||
#include <signal.h> | ||
|
||
extern void (*handlers[])(int sig, struct sigcontext *sc); | ||
extern void handle_signal(int sig, struct sigcontext *sc); | ||
|
||
void hard_handler(int sig) | ||
{ | ||
struct sigcontext *sc = (struct sigcontext *) (&sig + 1); | ||
|
||
(*handlers[sig])(sig, sc); | ||
handle_signal(sig, (struct sigcontext *) (&sig + 1)); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
/* | ||
* Copyright (C) 2006 Jeff Dike (jdike@addtoit.com) | ||
* Copyright (C) 2006 Jeff Dike (jdike@{addtoit,linux.intel}.com) | ||
* Licensed under the GPL | ||
*/ | ||
|
||
#include <signal.h> | ||
|
||
extern void (*handlers[])(int sig, struct sigcontext *sc); | ||
extern void handle_signal(int sig, struct sigcontext *sc); | ||
|
||
void hard_handler(int sig) | ||
{ | ||
struct ucontext *uc; | ||
asm("movq %%rdx, %0" : "=r" (uc)); | ||
|
||
(*handlers[sig])(sig, (struct sigcontext *) &uc->uc_mcontext); | ||
handle_signal(sig, (struct sigcontext *) &uc->uc_mcontext); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters