cregit-Linux how code gets into the kernel

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

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __ASM_SH_FPU_H

#define __ASM_SH_FPU_H

#ifndef __ASSEMBLY__

#include <asm/ptrace.h>

struct task_struct;

#ifdef CONFIG_SH_FPU

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

Contributors

PersonTokensPropCommitsCommitProp
Paul Mundt18100.00%1100.00%
Total18100.00%1100.00%


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

Contributors

PersonTokensPropCommitsCommitProp
Paul 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 Mundt2745.76%240.00%
Stuart Menefy2338.98%120.00%
Giuseppe Cavallaro711.86%120.00%
Vineet 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 Menefy2686.67%150.00%
Paul 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 Mundt4078.43%266.67%
Stuart Menefy1121.57%133.33%
Total51100.00%3100.00%

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

Overall Contributors

PersonTokensPropCommitsCommitProp
Paul Mundt25373.98%654.55%
Stuart Menefy6719.59%19.09%
Giuseppe Cavallaro164.68%19.09%
Ingo Molnar30.88%19.09%
Vineet Gupta20.58%19.09%
Greg Kroah-Hartman10.29%19.09%
Total342100.00%11100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.