-
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
Bodo Stroesser
authored and
Linus Torvalds
committed
May 5, 2005
1 parent
18fa66b
commit 3573970
Showing
25 changed files
with
280 additions
and
116 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: ea66e8a3b6c4760e8fbf59b1becb6bd8e3dd5376 | ||
refs/heads/master: c578455a3eccf4dd7bd111e77129c301d6d67914 |
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,29 @@ | ||
/* | ||
* Copyright (C) 2004 Fujitsu Siemens Computers GmbH | ||
* Author: Bodo Stroesser <bstroesser@fujitsu-siemens.com> | ||
* Licensed under the GPL | ||
*/ | ||
|
||
#ifndef __FAULTINFO_I386_H | ||
#define __FAULTINFO_I386_H | ||
|
||
/* this structure contains the full arch-specific faultinfo | ||
* from the traps. | ||
* On i386, ptrace_faultinfo unfortunately doesn't provide | ||
* all the info, since trap_no is missing. | ||
* All common elements are defined at the same position in | ||
* both structures, thus making it easy to copy the | ||
* contents without knowledge about the structure elements. | ||
*/ | ||
struct faultinfo { | ||
int error_code; /* in ptrace_faultinfo misleadingly called is_write */ | ||
unsigned long cr2; /* in ptrace_faultinfo called addr */ | ||
int trap_no; /* missing in ptrace_faultinfo */ | ||
}; | ||
|
||
#define FAULT_WRITE(fi) ((fi).error_code & 2) | ||
#define FAULT_ADDRESS(fi) ((fi).cr2) | ||
|
||
#define PTRACE_FULL_FAULTINFO 0 | ||
|
||
#endif |
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,22 @@ | ||
/* | ||
* Copyright (C) 2000, 2001, 2002 Jeff Dike (jdike@karaya.com) | ||
* Licensed under the GPL | ||
*/ | ||
|
||
#ifndef __SYSDEP_I386_SKAS_PTRACE_H | ||
#define __SYSDEP_I386_SKAS_PTRACE_H | ||
|
||
struct ptrace_faultinfo { | ||
int is_write; | ||
unsigned long addr; | ||
}; | ||
|
||
struct ptrace_ldt { | ||
int func; | ||
void *ptr; | ||
unsigned long bytecount; | ||
}; | ||
|
||
#define PTRACE_LDT 54 | ||
|
||
#endif |
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,22 @@ | ||
/* | ||
* Copyright (C) 2000, 2001, 2002 Jeff Dike (jdike@karaya.com) | ||
* Licensed under the GPL | ||
*/ | ||
|
||
#ifndef __SYSDEP_IA64_SKAS_PTRACE_H | ||
#define __SYSDEP_IA64_SKAS_PTRACE_H | ||
|
||
struct ptrace_faultinfo { | ||
int is_write; | ||
unsigned long addr; | ||
}; | ||
|
||
struct ptrace_ldt { | ||
int func; | ||
void *ptr; | ||
unsigned long bytecount; | ||
}; | ||
|
||
#define PTRACE_LDT 54 | ||
|
||
#endif |
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,22 @@ | ||
/* | ||
* Copyright (C) 2000, 2001, 2002 Jeff Dike (jdike@karaya.com) | ||
* Licensed under the GPL | ||
*/ | ||
|
||
#ifndef __SYSDEP_PPC_SKAS_PTRACE_H | ||
#define __SYSDEP_PPC_SKAS_PTRACE_H | ||
|
||
struct ptrace_faultinfo { | ||
int is_write; | ||
unsigned long addr; | ||
}; | ||
|
||
struct ptrace_ldt { | ||
int func; | ||
void *ptr; | ||
unsigned long bytecount; | ||
}; | ||
|
||
#define PTRACE_LDT 54 | ||
|
||
#endif |
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,29 @@ | ||
/* | ||
* Copyright (C) 2004 Fujitsu Siemens Computers GmbH | ||
* Author: Bodo Stroesser <bstroesser@fujitsu-siemens.com> | ||
* Licensed under the GPL | ||
*/ | ||
|
||
#ifndef __FAULTINFO_X86_64_H | ||
#define __FAULTINFO_X86_64_H | ||
|
||
/* this structure contains the full arch-specific faultinfo | ||
* from the traps. | ||
* On i386, ptrace_faultinfo unfortunately doesn't provide | ||
* all the info, since trap_no is missing. | ||
* All common elements are defined at the same position in | ||
* both structures, thus making it easy to copy the | ||
* contents without knowledge about the structure elements. | ||
*/ | ||
struct faultinfo { | ||
int error_code; /* in ptrace_faultinfo misleadingly called is_write */ | ||
unsigned long cr2; /* in ptrace_faultinfo called addr */ | ||
int trap_no; /* missing in ptrace_faultinfo */ | ||
}; | ||
|
||
#define FAULT_WRITE(fi) ((fi).error_code & 2) | ||
#define FAULT_ADDRESS(fi) ((fi).cr2) | ||
|
||
#define PTRACE_FULL_FAULTINFO 1 | ||
|
||
#endif |
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,22 @@ | ||
/* | ||
* Copyright (C) 2000, 2001, 2002 Jeff Dike (jdike@karaya.com) | ||
* Licensed under the GPL | ||
*/ | ||
|
||
#ifndef __SYSDEP_X86_64_SKAS_PTRACE_H | ||
#define __SYSDEP_X86_64_SKAS_PTRACE_H | ||
|
||
struct ptrace_faultinfo { | ||
int is_write; | ||
unsigned long addr; | ||
}; | ||
|
||
struct ptrace_ldt { | ||
int func; | ||
void *ptr; | ||
unsigned long bytecount; | ||
}; | ||
|
||
#define PTRACE_LDT 54 | ||
|
||
#endif |
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
Oops, something went wrong.