/* C representation of FPU registers */ /* NOTE: if you change this, you have to change the assembler offsets
below and the size in <asm/fpu.h>, too */ struct fp_data { struct fp_ext fpreg[8]; unsignedint fpcr; unsignedint fpsr; unsignedint fpiar; unsignedshort prec; unsignedshort rnd; struct fp_ext temp[2];
};
/* offsets from the base register to the floating point data in the task struct */ #define FPD_FPREG (TASK_THREAD+THREAD_FPREG+0) #define FPD_FPCR (TASK_THREAD+THREAD_FPREG+96) #define FPD_FPSR (TASK_THREAD+THREAD_FPREG+100) #define FPD_FPIAR (TASK_THREAD+THREAD_FPREG+104) #define FPD_PREC (TASK_THREAD+THREAD_FPREG+108) #define FPD_RND (TASK_THREAD+THREAD_FPREG+110) #define FPD_TEMPFP1 (TASK_THREAD+THREAD_FPREG+112) #define FPD_TEMPFP2 (TASK_THREAD+THREAD_FPREG+124) #define FPD_SIZEOF (TASK_THREAD+THREAD_FPREG+136)
/* offsets on the stack to access saved registers, * these are only used during instruction decoding * where we always know how deep we're on the stack.
*/ #define FPS_DO (PT_OFF_D0) #define FPS_D1 (PT_OFF_D1) #define FPS_D2 (PT_OFF_D2) #define FPS_A0 (PT_OFF_A0) #define FPS_A1 (PT_OFF_A1) #define FPS_A2 (PT_OFF_A2) #define FPS_SR (PT_OFF_SR) #define FPS_PC (PT_OFF_PC) #define FPS_EA (PT_OFF_PC+6) #define FPS_PC2 (PT_OFF_PC+10)
/* Macros used to get/put the current program counter. * 020/030 use a different stack frame then 040/060, for the * 040/060 the return pc points already to the next location, * so this only needs to be modified for jump instructions.
*/
.macro fp_get_pc dest
move.l (FPS_PC+4,%sp),\dest
.endm
/* These macros are used to read from/write to user space * on error we jump to the fixup section, load the fault * address into %a0 and jump to the exit. * (derived from <asm/uaccess.h>)
*/
.macro getuser size,src,dest,label,addr
| printf ,"[\size<%08x]",1,\addr
.Lu1\@: moves\size \src,\dest
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.