summaryrefslogtreecommitdiff
path: root/include/asm-sh/processor.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@athlon.transmeta.com>2002-02-05 00:17:16 -0800
committerLinus Torvalds <torvalds@athlon.transmeta.com>2002-02-05 00:17:16 -0800
commitfe48f9c8ac1f6b93d8f1371f116a2a0d95d6bc19 (patch)
treea5c617773ddae97b8135c414fd9a2347d492d8bf /include/asm-sh/processor.h
parent397cbdc2c254c7650d75fc990d33a878e75fafb7 (diff)
v2.5.2.4.1 -> v2.5.2.5
- Jeff Garzik: net driver updates - NIIBE Yutaka: SuperH update
Diffstat (limited to 'include/asm-sh/processor.h')
-rw-r--r--include/asm-sh/processor.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/asm-sh/processor.h b/include/asm-sh/processor.h
index 92683003d9a2..d0059ce6a934 100644
--- a/include/asm-sh/processor.h
+++ b/include/asm-sh/processor.h
@@ -184,19 +184,23 @@ extern void save_fpu(struct task_struct *__tsk);
#define unlazy_fpu(tsk) do { \
if ((tsk)->flags & PF_USEDFPU) { \
- grab_fpu(); \
save_fpu(tsk); \
} \
} while (0)
#define clear_fpu(tsk) do { \
- if ((tsk)->flags & PF_USEDFPU) \
+ if ((tsk)->flags & PF_USEDFPU) { \
(tsk)->flags &= ~PF_USEDFPU; \
+ release_fpu(); \
+ } \
} while (0)
/* Double presision, NANS as NANS, rounding to nearest, no exceptions */
#define FPSCR_INIT 0x00080000
+#define FPSCR_CAUSE_MASK 0x0001f000 /* Cause bits */
+#define FPSCR_FLAG_MASK 0x0000007c /* Flag bits */
+
/*
* Return saved PC of a blocked thread.
*/