Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
linux-seco-imx
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Jira
Code
Merge requests
12
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Clea OS
bsp
nxp
linux-seco-imx
Commits
fee578fa
Commit
fee578fa
authored
17 years ago
by
Ralf Baechle
Browse files
Options
Downloads
Patches
Plain Diff
[MIPS] Convert init_thread initialization to ISO C initializers.
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
a3692020
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/asm-mips/processor.h
+53
-37
53 additions, 37 deletions
include/asm-mips/processor.h
with
53 additions
and
37 deletions
include/asm-mips/processor.h
+
53
−
37
View file @
fee578fa
...
@@ -82,10 +82,6 @@ struct mips_fpu_struct {
...
@@ -82,10 +82,6 @@ struct mips_fpu_struct {
unsigned
int
fcr31
;
unsigned
int
fcr31
;
};
};
#define INIT_FPU { \
{0,} \
}
#define NUM_DSP_REGS 6
#define NUM_DSP_REGS 6
typedef
__u32
dspreg_t
;
typedef
__u32
dspreg_t
;
...
@@ -95,8 +91,6 @@ struct mips_dsp_state {
...
@@ -95,8 +91,6 @@ struct mips_dsp_state {
unsigned
int
dspcontrol
;
unsigned
int
dspcontrol
;
};
};
#define INIT_DSP {{0,},}
#define INIT_CPUMASK { \
#define INIT_CPUMASK { \
{0,} \
{0,} \
}
}
...
@@ -155,41 +149,63 @@ struct thread_struct {
...
@@ -155,41 +149,63 @@ struct thread_struct {
#define MF_N64 0
#define MF_N64 0
#ifdef CONFIG_MIPS_MT_FPAFF
#ifdef CONFIG_MIPS_MT_FPAFF
#define FPAFF_INIT 0, INIT_CPUMASK,
#define FPAFF_INIT \
.emulated_fp = 0, \
.user_cpus_allowed = INIT_CPUMASK,
#else
#else
#define FPAFF_INIT
#define FPAFF_INIT
#endif
/* CONFIG_MIPS_MT_FPAFF */
#endif
/* CONFIG_MIPS_MT_FPAFF */
#define INIT_THREAD { \
#define INIT_THREAD { \
/* \
/* \
* saved main processor registers \
* Saved main processor registers \
*/
\
*/
\
0, 0, 0, 0, 0, 0, 0, 0, \
.reg16 = 0, \
0, 0, 0, \
.reg17 = 0, \
/* \
.reg18 = 0, \
* saved cp0 stuff \
.reg19 = 0, \
*/
\
.reg20 = 0, \
0, \
.reg21 = 0, \
/* \
.reg22 = 0, \
* saved fpu/fpu emulator stuff \
.reg23 = 0, \
*/
\
.reg29 = 0, \
INIT_FPU, \
.reg30 = 0, \
/* \
.reg31 = 0, \
* fpu affinity state (null if not FPAFF) \
/* \
*/
\
* Saved cp0 stuff \
FPAFF_INIT \
*/
\
/* \
.cp0_status = 0, \
* saved dsp/dsp emulator stuff \
/* \
*/
\
* Saved FPU/FPU emulator stuff \
INIT_DSP, \
*/
\
/* \
.fpu = { \
* Other stuff associated with the process \
.fpr = {0,}, \
*/
\
.fcr31 = 0, \
0, 0, 0, 0, \
}, \
/* \
/* \
* For now the default is to fix address errors \
* FPU affinity state (null if not FPAFF) \
*/
\
*/
\
MF_FIXADE, 0, 0 \
FPAFF_INIT \
/* \
* Saved DSP stuff \
*/
\
.dsp = { \
.dspr = {0, }, \
.dspcontrol = 0, \
}, \
/* \
* Other stuff associated with the process \
*/
\
.cp0_badvaddr = 0, \
.cp0_baduaddr = 0, \
.error_code = 0, \
.trap_no = 0, \
/* \
* For now the default is to fix address errors \
*/
\
.mflags = MF_FIXADE, \
.irix_trampoline = 0, \
.irix_oldctx = 0, \
}
}
struct
task_struct
;
struct
task_struct
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment