-
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: 77792 b: refs/heads/master c: 332fd57 h: refs/heads/master v: v3
- Loading branch information
Paul Mundt
committed
Jan 28, 2008
1 parent
ce2cd14
commit 44a7a8f
Showing
10 changed files
with
60 additions
and
60 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: b6d7b666097e79a8908e3c43fd55fd291a95e133 | ||
refs/heads/master: 332fd57b92d26e2ac6112340b98e92bb76117a41 |
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,44 @@ | ||
#ifndef __ASM_SH_FPU_H | ||
#define __ASM_SH_FPU_H | ||
|
||
#define SR_FD 0x00008000 | ||
|
||
#ifndef __ASSEMBLY__ | ||
#include <asm/ptrace.h> | ||
|
||
#ifdef CONFIG_SH_FPU | ||
static inline void release_fpu(struct pt_regs *regs) | ||
{ | ||
regs->sr |= SR_FD; | ||
} | ||
|
||
static inline void grab_fpu(struct pt_regs *regs) | ||
{ | ||
regs->sr &= ~SR_FD; | ||
} | ||
|
||
struct task_struct; | ||
|
||
extern void save_fpu(struct task_struct *__tsk, struct pt_regs *regs); | ||
#else | ||
#define release_fpu(regs) do { } while (0) | ||
#define grab_fpu(regs) do { } while (0) | ||
#define save_fpu(tsk, regs) do { } while (0) | ||
#endif | ||
|
||
#define unlazy_fpu(tsk, regs) do { \ | ||
if (test_tsk_thread_flag(tsk, TIF_USEDFPU)) { \ | ||
save_fpu(tsk, regs); \ | ||
} \ | ||
} while (0) | ||
|
||
#define clear_fpu(tsk, regs) do { \ | ||
if (test_tsk_thread_flag(tsk, TIF_USEDFPU)) { \ | ||
clear_tsk_thread_flag(tsk, TIF_USEDFPU); \ | ||
release_fpu(regs); \ | ||
} \ | ||
} while (0) | ||
|
||
#endif /* __ASSEMBLY__ */ | ||
|
||
#endif /* __ASM_SH_FPU_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
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