Changeset View
Changeset View
Standalone View
Standalone View
head/sys/powerpc/include/pcb.h
Show All 40 Lines | |||||
#ifndef _STANDALONE | #ifndef _STANDALONE | ||||
struct pcb { | struct pcb { | ||||
register_t pcb_context[20]; /* non-volatile r14-r31 */ | register_t pcb_context[20]; /* non-volatile r14-r31 */ | ||||
register_t pcb_cr; /* Condition register */ | register_t pcb_cr; /* Condition register */ | ||||
register_t pcb_sp; /* stack pointer */ | register_t pcb_sp; /* stack pointer */ | ||||
register_t pcb_toc; /* toc pointer */ | register_t pcb_toc; /* toc pointer */ | ||||
register_t pcb_lr; /* link register */ | register_t pcb_lr; /* link register */ | ||||
register_t pcb_dscr; /* dscr value */ | |||||
struct pmap *pcb_pm; /* pmap of our vmspace */ | struct pmap *pcb_pm; /* pmap of our vmspace */ | ||||
jmp_buf *pcb_onfault; /* For use during | jmp_buf *pcb_onfault; /* For use during | ||||
copyin/copyout */ | copyin/copyout */ | ||||
int pcb_flags; | int pcb_flags; | ||||
#define PCB_FPU 1 /* Process uses FPU */ | #define PCB_FPU 0x1 /* Process uses FPU */ | ||||
#define PCB_FPREGS 2 /* Process had FPU registers initialized */ | #define PCB_FPREGS 0x2 /* Process had FPU registers initialized */ | ||||
#define PCB_VEC 4 /* Process had Altivec initialized */ | #define PCB_VEC 0x4 /* Process had Altivec initialized */ | ||||
#define PCB_VSX 8 /* Process had VSX initialized */ | #define PCB_VSX 0x8 /* Process had VSX initialized */ | ||||
#define PCB_CDSCR 0x10 /* Process had Custom DSCR initialized */ | |||||
struct fpu { | struct fpu { | ||||
union { | union { | ||||
double fpr; | double fpr; | ||||
uint32_t vsr[4]; | uint32_t vsr[4]; | ||||
} fpr[32]; | } fpr[32]; | ||||
double fpscr; /* FPSCR stored as double for easier access */ | double fpscr; /* FPSCR stored as double for easier access */ | ||||
} pcb_fpu; /* Floating point processor */ | } pcb_fpu; /* Floating point processor */ | ||||
unsigned int pcb_fpcpu; /* which CPU had our FPU | unsigned int pcb_fpcpu; /* which CPU had our FPU | ||||
Show All 38 Lines |