-
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: 108852 b: refs/heads/master c: d280539 h: refs/heads/master v: v3
- Loading branch information
David S. Miller
committed
Aug 19, 2008
1 parent
649f090
commit afa3168
Showing
407 changed files
with
21,410 additions
and
6,324 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: 63fbd24e5102eecfc9d049ed7f4be7f9a25f814f | ||
| refs/heads/master: d2805395aadc105d7228511eb0f42d9eea912003 |
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 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,60 @@ | ||
| #ifndef _KSTACK_H | ||
| #define _KSTACK_H | ||
|
|
||
| #include <linux/thread_info.h> | ||
| #include <linux/sched.h> | ||
| #include <asm/ptrace.h> | ||
| #include <asm/irq.h> | ||
|
|
||
| /* SP must be STACK_BIAS adjusted already. */ | ||
| static inline bool kstack_valid(struct thread_info *tp, unsigned long sp) | ||
| { | ||
| unsigned long base = (unsigned long) tp; | ||
|
|
||
| if (sp >= (base + sizeof(struct thread_info)) && | ||
| sp <= (base + THREAD_SIZE - sizeof(struct sparc_stackf))) | ||
| return true; | ||
|
|
||
| if (hardirq_stack[tp->cpu]) { | ||
| base = (unsigned long) hardirq_stack[tp->cpu]; | ||
| if (sp >= base && | ||
| sp <= (base + THREAD_SIZE - sizeof(struct sparc_stackf))) | ||
| return true; | ||
| base = (unsigned long) softirq_stack[tp->cpu]; | ||
| if (sp >= base && | ||
| sp <= (base + THREAD_SIZE - sizeof(struct sparc_stackf))) | ||
| return true; | ||
| } | ||
| return false; | ||
| } | ||
|
|
||
| /* Does "regs" point to a valid pt_regs trap frame? */ | ||
| static inline bool kstack_is_trap_frame(struct thread_info *tp, struct pt_regs *regs) | ||
| { | ||
| unsigned long base = (unsigned long) tp; | ||
| unsigned long addr = (unsigned long) regs; | ||
|
|
||
| if (addr >= base && | ||
| addr <= (base + THREAD_SIZE - sizeof(*regs))) | ||
| goto check_magic; | ||
|
|
||
| if (hardirq_stack[tp->cpu]) { | ||
| base = (unsigned long) hardirq_stack[tp->cpu]; | ||
| if (addr >= base && | ||
| addr <= (base + THREAD_SIZE - sizeof(*regs))) | ||
| goto check_magic; | ||
| base = (unsigned long) softirq_stack[tp->cpu]; | ||
| if (addr >= base && | ||
| addr <= (base + THREAD_SIZE - sizeof(*regs))) | ||
| goto check_magic; | ||
| } | ||
| return false; | ||
|
|
||
| check_magic: | ||
| if ((regs->magic & ~0x1ff) == PT_REGS_MAGIC) | ||
| return true; | ||
| return false; | ||
|
|
||
| } | ||
|
|
||
| #endif /* _KSTACK_H */ |
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.