cregit-Linux how code gets into the kernel

Release 4.7 arch/sh/include/asm/fpu.h

#ifndef __ASM_SH_FPU_H

#define __ASM_SH_FPU_H

#ifndef __ASSEMBLY__

struct task_struct;

#ifdef CONFIG_SH_FPU

static inline void release_fpu(struct pt_regs *regs) { regs->sr |= SR_FD; }

Contributors

PersonTokensPropCommitsCommitProp
paul mundtpaul mundt18100.00%1100.00%
Total18100.00%1100.00%


static inline void grab_fpu(struct pt_regs *regs) { regs->sr &= ~SR_FD; }

Contributors

PersonTokensPropCommitsCommitProp
paul mundtpaul mundt19100.00%1100.00%
Total19100.00%1100.00%

extern void save_fpu(struct task_struct *__tsk); extern void restore_fpu(struct task_struct *__tsk); extern void fpu_state_restore(struct pt_regs *regs); extern void __fpu_state_restore(void); #else #define save_fpu(tsk) do { } while (0) #define restore_fpu(tsk) do { } while (0) #define release_fpu(regs) do { } while (0) #define grab_fpu(regs) do { } while (0) #define fpu_state_restore(regs) do { } while (0) #define __fpu_state_restore(regs) do { } while (0) #endif struct user_regset; extern int do_fpu_inst(unsigned short, struct pt_regs *); extern int init_fpu(struct task_struct *); extern int fpregs_get(struct task_struct *target, const struct user_regset *regset, unsigned int pos, unsigned int count, void *kbuf, void __user *ubuf);
static inline void __unlazy_fpu(struct task_struct *tsk, struct pt_regs *regs) { if (task_thread_info(tsk)->status & TS_USEDFPU) { task_thread_info(tsk)->status &= ~TS_USEDFPU; save_fpu(tsk); release_fpu(regs); } else tsk->thread.fpu_counter = 0; }

Contributors

PersonTokensPropCommitsCommitProp
paul mundtpaul mundt2745.76%240.00%
stuart menefystuart menefy2338.98%120.00%
giuseppe cavallarogiuseppe cavallaro711.86%120.00%
vineet guptavineet gupta23.39%120.00%
Total59100.00%5100.00%


static inline void unlazy_fpu(struct task_struct *tsk, struct pt_regs *regs) { preempt_disable(); __unlazy_fpu(tsk, regs); preempt_enable(); }

Contributors

PersonTokensPropCommitsCommitProp
stuart menefystuart menefy2686.67%150.00%
paul mundtpaul mundt413.33%150.00%
Total30100.00%2100.00%


static inline void clear_fpu(struct task_struct *tsk, struct pt_regs *regs) { preempt_disable(); if (task_thread_info(tsk)->status & TS_USEDFPU) { task_thread_info(tsk)->status &= ~TS_USEDFPU; release_fpu(regs); } preempt_enable(); }

Contributors

PersonTokensPropCommitsCommitProp
paul mundtpaul mundt4078.43%266.67%
stuart menefystuart menefy1121.57%133.33%
Total51100.00%3100.00%

#endif /* __ASSEMBLY__ */ #endif /* __ASM_SH_FPU_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
paul mundtpaul mundt25374.85%666.67%
stuart menefystuart menefy6719.82%111.11%
giuseppe cavallarogiuseppe cavallaro164.73%111.11%
vineet guptavineet gupta20.59%111.11%
Total338100.00%9100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
{% endraw %}