-
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.
- Loading branch information
Anil S Keshavamurthy
authored and
Linus Torvalds
committed
Jun 23, 2005
1 parent
c230de4
commit cc71644
Showing
5 changed files
with
104 additions
and
2 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: 0aa55e4d7db822059fe8132fe9f2b7773c48216c | ||
refs/heads/master: 7213b2521889eb087eed8abaa48d1a692575da3e |
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,61 @@ | ||
#ifndef _IA64_KDEBUG_H | ||
#define _IA64_KDEBUG_H 1 | ||
/* | ||
* include/asm-ia64/kdebug.h | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation; either version 2 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program; if not, write to the Free Software | ||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||
* | ||
* Copyright (C) Intel Corporation, 2005 | ||
* | ||
* 2005-Apr Rusty Lynch <rusty.lynch@intel.com> and Anil S Keshavamurthy | ||
* <anil.s.keshavamurthy@intel.com> adopted from | ||
* include/asm-x86_64/kdebug.h | ||
*/ | ||
#include <linux/notifier.h> | ||
|
||
struct pt_regs; | ||
|
||
struct die_args { | ||
struct pt_regs *regs; | ||
const char *str; | ||
long err; | ||
int trapnr; | ||
int signr; | ||
}; | ||
|
||
int register_die_notifier(struct notifier_block *nb); | ||
extern struct notifier_block *ia64die_chain; | ||
|
||
enum die_val { | ||
DIE_BREAK = 1, | ||
DIE_SS, | ||
DIE_PAGE_FAULT, | ||
}; | ||
|
||
static inline int notify_die(enum die_val val, char *str, struct pt_regs *regs, | ||
long err, int trap, int sig) | ||
{ | ||
struct die_args args = { | ||
.regs = regs, | ||
.str = str, | ||
.err = err, | ||
.trapnr = trap, | ||
.signr = sig | ||
}; | ||
|
||
return notifier_call_chain(&ia64die_chain, val, &args); | ||
} | ||
|
||
#endif |