Skip to content

Commit

Permalink
sh: Stubs for fpu disabled on SH-5.
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Paul Mundt committed Jan 28, 2008
1 parent e88ed82 commit ffd25eb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/asm-sh/processor_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -262,11 +262,16 @@ static inline void grab_fpu(struct pt_regs *regs)
#define FPSCR_INIT 0x00000000
#endif

#ifdef CONFIG_SH_FPU
/* Save the current FP regs */
void fpsave(struct sh_fpu_hard_struct *fpregs);

/* Initialise the FP state of a task */
void fpinit(struct sh_fpu_hard_struct *fpregs);
#else
#define fpsave(fpregs) do { } while (0)
#define fpinit(fpregs) do { } while (0)
#endif

extern struct task_struct *last_task_used_math;

Expand Down

0 comments on commit ffd25eb

Please sign in to comment.