diff options
Diffstat (limited to 'include/asm-powerpc/reg.h')
-rw-r--r-- | include/asm-powerpc/reg.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/asm-powerpc/reg.h b/include/asm-powerpc/reg.h index 3779b21a7c71..bfc7dc14ffcc 100644 --- a/include/asm-powerpc/reg.h +++ b/include/asm-powerpc/reg.h | |||
@@ -499,6 +499,19 @@ | |||
499 | #define MMCR0_PMC2_LOADMISSTIME 0x5 | 499 | #define MMCR0_PMC2_LOADMISSTIME 0x5 |
500 | #endif | 500 | #endif |
501 | 501 | ||
502 | /* | ||
503 | * An mtfsf instruction with the L bit set. On CPUs that support this a | ||
504 | * full 64bits of FPSCR is restored and on other CPUs it is ignored. | ||
505 | * | ||
506 | * Until binutils gets the new form of mtfsf, hardwire the instruction. | ||
507 | */ | ||
508 | #ifdef CONFIG_PPC64 | ||
509 | #define MTFSF_L(REG) \ | ||
510 | .long (0xfc00058e | ((0xff) << 17) | ((REG) << 11) | (1 << 25)) | ||
511 | #else | ||
512 | #define MTFSF_L(REG) mtfsf 0xff, (REG) | ||
513 | #endif | ||
514 | |||
502 | /* Processor Version Register (PVR) field extraction */ | 515 | /* Processor Version Register (PVR) field extraction */ |
503 | 516 | ||
504 | #define PVR_VER(pvr) (((pvr) >> 16) & 0xFFFF) /* Version field */ | 517 | #define PVR_VER(pvr) (((pvr) >> 16) & 0xFFFF) /* Version field */ |