-
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: 35703 b: refs/heads/master c: 4b84c69 h: refs/heads/master i: 35701: cafe93e 35699: 33a39e1 35695: 0d91992 v: v3
- Loading branch information
Jeff Dike
authored and
Linus Torvalds
committed
Sep 26, 2006
1 parent
eb6c5f0
commit ccf1057
Showing
13 changed files
with
103 additions
and
90 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: 19bdf0409f25a85a45874a5a8da6f3e4edcf4a49 | ||
refs/heads/master: 4b84c69b5f6c08a540e3683f1360a6cdef2806c7 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* | ||
* Copyright (C) 2006 Jeff Dike (jdike@addtoit.com) | ||
* Licensed under the GPL | ||
*/ | ||
|
||
#include <signal.h> | ||
|
||
extern void (*handlers[])(int sig, struct sigcontext *sc); | ||
|
||
void hard_handler(int sig) | ||
{ | ||
struct sigcontext *sc = (struct sigcontext *) (&sig + 1); | ||
|
||
(*handlers[sig])(sig, sc); | ||
} |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* | ||
* Copyright (C) 2006 Jeff Dike (jdike@addtoit.com) | ||
* Licensed under the GPL | ||
*/ | ||
|
||
#include <signal.h> | ||
|
||
extern void (*handlers[])(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); | ||
} |
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