diff options
author | Vineet Gupta <vgupta@synopsys.com> | 2020-01-17 16:00:41 -0800 |
---|---|---|
committer | Vineet Gupta <vgupta@synopsys.com> | 2020-01-17 16:53:38 -0800 |
commit | f05523aa7a1e63bfada5e222c0a57e02dbd4fcfa (patch) | |
tree | cd56e4c8e5dbc2f85ee94065191052088a2863c1 /arch/arc/include/asm/fpu.h | |
parent | bd71c453db91ecb464405411f2821d040f2a0d44 (diff) |
ARC: fpu: declutter code, move bits out into fpu.h
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch/arc/include/asm/fpu.h')
-rw-r--r-- | arch/arc/include/asm/fpu.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/arch/arc/include/asm/fpu.h b/arch/arc/include/asm/fpu.h new file mode 100644 index 000000000000..de467423d99b --- /dev/null +++ b/arch/arc/include/asm/fpu.h @@ -0,0 +1,29 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +/* + * Copyright (C) 2020 Synopsys, Inc. (www.synopsys.com) + * + */ + +#ifndef _ASM_ARC_FPU_H +#define _ASM_ARC_FPU_H + +#ifdef CONFIG_ARC_FPU_SAVE_RESTORE + +#include <asm/ptrace.h> + +/* These DPFP regs need to be saved/restored across ctx-sw */ +struct arc_fpu { + struct { + unsigned int l, h; + } aux_dpfp[2]; +}; + +extern void fpu_save_restore(struct task_struct *p, struct task_struct *n); + +#else + +#define fpu_save_restore(p, n) + +#endif /* CONFIG_ARC_FPU_SAVE_RESTORE */ + +#endif /* _ASM_ARC_FPU_H */ |