1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __ASM_OPENRISC_FPU_H
3 #define __ASM_OPENRISC_FPU_H
8 static inline void save_fpu(struct task_struct
*task
)
10 task
->thread
.fpcsr
= mfspr(SPR_FPCSR
);
13 static inline void restore_fpu(struct task_struct
*task
)
15 mtspr(SPR_FPCSR
, task
->thread
.fpcsr
);
18 #define save_fpu(tsk) do { } while (0)
19 #define restore_fpu(tsk) do { } while (0)
22 #endif /* __ASM_OPENRISC_FPU_H */