mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
ARC: unbork FPU save/restore
Fixes: 2ab402dfd6
"ARC: make start_thread() out-of-line"
CC: <stable@vger.kernel.org> #3.16
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
This commit is contained in:
parent
be64c997d9
commit
52e9bae938
2 changed files with 9 additions and 8 deletions
|
@ -189,14 +189,6 @@
|
||||||
#define PAGES_TO_KB(n_pages) ((n_pages) << (PAGE_SHIFT - 10))
|
#define PAGES_TO_KB(n_pages) ((n_pages) << (PAGE_SHIFT - 10))
|
||||||
#define PAGES_TO_MB(n_pages) (PAGES_TO_KB(n_pages) >> 10)
|
#define PAGES_TO_MB(n_pages) (PAGES_TO_KB(n_pages) >> 10)
|
||||||
|
|
||||||
#ifdef CONFIG_ARC_FPU_SAVE_RESTORE
|
|
||||||
/* These DPFP regs need to be saved/restored across ctx-sw */
|
|
||||||
struct arc_fpu {
|
|
||||||
struct {
|
|
||||||
unsigned int l, h;
|
|
||||||
} aux_dpfp[2];
|
|
||||||
};
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
***************************************************************
|
***************************************************************
|
||||||
|
|
|
@ -18,6 +18,15 @@
|
||||||
|
|
||||||
#include <asm/ptrace.h>
|
#include <asm/ptrace.h>
|
||||||
|
|
||||||
|
#ifdef CONFIG_ARC_FPU_SAVE_RESTORE
|
||||||
|
/* These DPFP regs need to be saved/restored across ctx-sw */
|
||||||
|
struct arc_fpu {
|
||||||
|
struct {
|
||||||
|
unsigned int l, h;
|
||||||
|
} aux_dpfp[2];
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Arch specific stuff which needs to be saved per task.
|
/* Arch specific stuff which needs to be saved per task.
|
||||||
* However these items are not so important so as to earn a place in
|
* However these items are not so important so as to earn a place in
|
||||||
* struct thread_info
|
* struct thread_info
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue