Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 2082 → Rev 2083

/trunk/kernel/arch/sparc64/include/fpu_context.h
40,10 → 40,10
#define ARCH_HAS_FPU
#define FPU_CONTEXT_ALIGN 8
 
struct fpu_context {
typedef struct {
uint64_t d[32];
uint64_t fsr;
};
} fpu_context_t;
 
#endif
 
/trunk/kernel/arch/sparc64/include/context.h
56,7 → 56,7
* Save only registers that must be preserved across
* function calls.
*/
struct context {
typedef struct {
uintptr_t sp; /* %o6 */
uintptr_t pc; /* %o7 */
uint64_t i0;
76,7 → 76,7
uint64_t l6;
uint64_t l7;
ipl_t ipl;
};
} context_t;
 
#endif
 
/trunk/kernel/arch/ia64/include/fpu_context.h
42,9 → 42,9
 
#define FRS 96
 
struct fpu_context {
typedef struct {
__r128 fr[FRS];
};
} fpu_context_t;
 
#endif
 
/trunk/kernel/arch/ia64/include/context.h
66,7 → 66,7
* Only save registers that must be preserved across
* function calls.
*/
struct context {
typedef struct {
 
/*
* Application registers
128,7 → 128,7
__r128 f31;
ipl_t ipl;
};
} context_t;
 
#endif
 
/trunk/kernel/arch/ppc32/include/fpu_context.h
39,7 → 39,7
# include <arch/types.h>
#endif
 
struct fpu_context {
typedef struct {
uint64_t fr14;
uint64_t fr15;
uint64_t fr16;
59,7 → 59,7
uint64_t fr30;
uint64_t fr31;
uint32_t fpscr;
} __attribute__ ((packed));
} __attribute__ ((packed)) fpu_context_t;
 
#endif
 
/trunk/kernel/arch/ppc32/include/context.h
39,7 → 39,7
 
#define SP_DELTA 16
 
struct context {
typedef struct {
uintptr_t sp;
uintptr_t pc;
67,7 → 67,7
uint32_t cr;
ipl_t ipl;
} __attribute__ ((packed));
} __attribute__ ((packed)) context_t;
 
#endif
 
/trunk/kernel/arch/amd64/include/context.h
46,7 → 46,7
/* We include only registers that must be preserved
* during function call
*/
struct context {
typedef struct {
uintptr_t sp;
uintptr_t pc;
59,7 → 59,7
uint64_t r15;
 
ipl_t ipl;
} __attribute__ ((packed));
} __attribute__ ((packed)) context_t;
 
#endif
 
/trunk/kernel/arch/ppc64/include/fpu_context.h
39,7 → 39,7
# include <arch/types.h>
#endif
 
struct fpu_context {
typedef struct {
uint64_t fr14;
uint64_t fr15;
uint64_t fr16;
59,7 → 59,7
uint64_t fr30;
uint64_t fr31;
uint32_t fpscr;
} __attribute__ ((packed));
} __attribute__ ((packed)) fpu_context_t;
 
#endif
 
/trunk/kernel/arch/ppc64/include/context.h
39,7 → 39,7
 
#define SP_DELTA 16
 
struct context {
typedef struct {
uintptr_t sp;
uintptr_t pc;
67,7 → 67,7
uint64_t cr;
ipl_t ipl;
} __attribute__ ((packed));
} __attribute__ ((packed)) context_t;
 
#endif
 
/trunk/kernel/arch/mips32/include/fpu_context.h
39,10 → 39,10
 
#define FPU_CONTEXT_ALIGN sizeof(unative_t)
 
struct fpu_context {
typedef struct {
unative_t dregs[32];
unative_t cregs[32];
};
} fpu_context_t;
 
#endif
 
/trunk/kernel/arch/mips32/include/context.h
52,7 → 52,7
* Only save registers that must be preserved across
* function calls.
*/
struct context {
typedef struct {
uintptr_t sp;
uintptr_t pc;
68,7 → 68,7
uint32_t gp;
 
ipl_t ipl;
};
} context_t;
 
#endif /* __ASM__ */
 
/trunk/kernel/arch/ia32/include/fpu_context.h
44,9 → 44,9
void fpu_fsr(void);
 
 
struct fpu_context {
typedef struct {
uint8_t fpu[512]; /* FXSAVE & FXRSTOR storage area */
};
} fpu_context_t;
 
#endif
 
/trunk/kernel/arch/ia32/include/context.h
51,7 → 51,7
* Only save registers that must be preserved across
* function calls.
*/
struct context {
typedef struct {
uintptr_t sp;
uintptr_t pc;
uint32_t ebx;
59,7 → 59,7
uint32_t edi;
uint32_t ebp;
ipl_t ipl;
} __attribute__ ((packed));
} __attribute__ ((packed)) context_t;
 
#endif