GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > PBS / V2-10-15
Constituent: pbs     Tag: rad750
Defines | |
#define | REG_LR() |
Fetches the value of the current LR (link register). | |
#define | REG_MSR() |
Fetches the value of the current MSR (machine status register). | |
#define | REG_PC() |
Fetches the value of the current PC. | |
#define | REG_SP() |
Fetches the value of the current Stack Pointer. | |
#define | REG_PVR() |
Fetches the value the Processor Version Register. | |
#define | REG_SPR(_spr) |
Fetches the value the specified SPR. |
CVS $Id: REG.h.xx-ppc-gcc,v 1.4 2005/05/12 19:42:56 russell Exp $
|
Value: ( \ { \ unsigned int *lr; \ asm volatile ("0: mflr %0": "=r"(lr)); \ lr; \ } \ )
|
|
Value: ( \ { \ unsigned int msr; \ asm volatile (" bl 0f \n \ 0: mfmsr %0": "=r"(msr)); \ msr; \ } \ )
|
|
Value: ( \ { \ unsigned int *pc; \ asm volatile (" bl 0f \n \ 0: mflr %0": "=r"(pc)); \ pc; \ } \ )
|
|
Value: ( \ { \ unsigned int pvr; \ asm volatile (" mfspr %0,287" :"=r"(pvr)); \ pvr; \ } \ )
|
|
Value: ( \ { \ unsigned int *sp; \ asm volatile (" mr %0,1" :"=r"(sp)); \ sp; \ } \ )
|
|
Value: ( \ { \ unsigned int spr; \ asm volatile (" mfspr %0," # _spr : "=r"(spr)); \ spr; \ } \ )
|