-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'arc-5.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/…
…git/vgupta/arc Pull ARC updates from Vineet Gupta: - Wire up clone3 syscall - ARCv2 FPU state save/restore across context switch - AXS10x platform and misc fixes * tag 'arc-5.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc: ARCv2: fpu: preserve userspace fpu state ARC: fpu: declutter code, move bits out into fpu.h ARC: wireup clone3 syscall ARC: [plat-axs10x]: Add missing multicast filter number to GMAC node ARC: update feature support for jump-labels
- Loading branch information
Showing
14 changed files
with
121 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/* 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> | ||
|
||
#ifdef CONFIG_ISA_ARCOMPACT | ||
|
||
/* These DPFP regs need to be saved/restored across ctx-sw */ | ||
struct arc_fpu { | ||
struct { | ||
unsigned int l, h; | ||
} aux_dpfp[2]; | ||
}; | ||
|
||
#define fpu_init_task(regs) | ||
|
||
#else | ||
|
||
/* | ||
* ARCv2 FPU Control aux register | ||
* - bits to enable Traps on Exceptions | ||
* - Rounding mode | ||
* | ||
* ARCv2 FPU Status aux register | ||
* - FPU exceptions flags (Inv, Div-by-Zero, overflow, underflow, inexact) | ||
* - Flag Write Enable to clear flags explicitly (vs. by fpu instructions | ||
* only | ||
*/ | ||
|
||
struct arc_fpu { | ||
unsigned int ctrl, status; | ||
}; | ||
|
||
extern void fpu_init_task(struct pt_regs *regs); | ||
|
||
#endif /* !CONFIG_ISA_ARCOMPACT */ | ||
|
||
extern void fpu_save_restore(struct task_struct *p, struct task_struct *n); | ||
|
||
#else /* !CONFIG_ARC_FPU_SAVE_RESTORE */ | ||
|
||
#define fpu_save_restore(p, n) | ||
#define fpu_init_task(regs) | ||
|
||
#endif /* CONFIG_ARC_FPU_SAVE_RESTORE */ | ||
|
||
#endif /* _ASM_ARC_FPU_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters