Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 58652
b: refs/heads/master
c: fee578f
h: refs/heads/master
v: v3
  • Loading branch information
Ralf Baechle committed Jul 10, 2007
1 parent a5b7c1d commit ff151d8
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 38 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a36920200c5b89d56120a5e839fe4a603d51b16c
refs/heads/master: fee578fad1a29e6a149659e5467aedcae6897c06
90 changes: 53 additions & 37 deletions trunk/include/asm-mips/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,6 @@ struct mips_fpu_struct {
unsigned int fcr31;
};

#define INIT_FPU { \
{0,} \
}

#define NUM_DSP_REGS 6

typedef __u32 dspreg_t;
Expand All @@ -95,8 +91,6 @@ struct mips_dsp_state {
unsigned int dspcontrol;
};

#define INIT_DSP {{0,},}

#define INIT_CPUMASK { \
{0,} \
}
Expand Down Expand Up @@ -155,41 +149,63 @@ struct thread_struct {
#define MF_N64 0

#ifdef CONFIG_MIPS_MT_FPAFF
#define FPAFF_INIT 0, INIT_CPUMASK,
#define FPAFF_INIT \
.emulated_fp = 0, \
.user_cpus_allowed = INIT_CPUMASK,
#else
#define FPAFF_INIT
#endif /* CONFIG_MIPS_MT_FPAFF */

#define INIT_THREAD { \
/* \
* saved main processor registers \
*/ \
0, 0, 0, 0, 0, 0, 0, 0, \
0, 0, 0, \
/* \
* saved cp0 stuff \
*/ \
0, \
/* \
* saved fpu/fpu emulator stuff \
*/ \
INIT_FPU, \
/* \
* fpu affinity state (null if not FPAFF) \
*/ \
FPAFF_INIT \
/* \
* saved dsp/dsp emulator stuff \
*/ \
INIT_DSP, \
/* \
* Other stuff associated with the process \
*/ \
0, 0, 0, 0, \
/* \
* For now the default is to fix address errors \
*/ \
MF_FIXADE, 0, 0 \
#define INIT_THREAD { \
/* \
* Saved main processor registers \
*/ \
.reg16 = 0, \
.reg17 = 0, \
.reg18 = 0, \
.reg19 = 0, \
.reg20 = 0, \
.reg21 = 0, \
.reg22 = 0, \
.reg23 = 0, \
.reg29 = 0, \
.reg30 = 0, \
.reg31 = 0, \
/* \
* Saved cp0 stuff \
*/ \
.cp0_status = 0, \
/* \
* Saved FPU/FPU emulator stuff \
*/ \
.fpu = { \
.fpr = {0,}, \
.fcr31 = 0, \
}, \
/* \
* FPU affinity state (null if not FPAFF) \
*/ \
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;
Expand Down

0 comments on commit ff151d8

Please sign in to comment.