diff options
Diffstat (limited to 'src/ssx/ppc405/ppc405_dcr.h')
-rw-r--r-- | src/ssx/ppc405/ppc405_dcr.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/ssx/ppc405/ppc405_dcr.h b/src/ssx/ppc405/ppc405_dcr.h index b7e6207..6355101 100644 --- a/src/ssx/ppc405/ppc405_dcr.h +++ b/src/ssx/ppc405/ppc405_dcr.h @@ -5,7 +5,7 @@ /* */ /* OpenPOWER OnChipController Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2014,2015 */ +/* Contributors Listed Below - COPYRIGHT 2014,2016 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -42,9 +42,9 @@ /// Note that \a dcrn must be a compile-time constant. #define mfdcr(dcrn) \ - ({uint32_t __value; \ - asm volatile ("mfdcr %0, %1" : "=r" (__value) : "i" (dcrn)); \ - __value;}) + ({uint32_t __value; \ + asm volatile ("mfdcr %0, %1" : "=r" (__value) : "i" (dcrn)); \ + __value;}) /// Move to DCR @@ -52,10 +52,10 @@ /// Note that \a dcrn must be a compile-time constant. #define mtdcr(dcrn, value) \ - ({uint32_t __value = (value); \ - asm volatile ("mtdcr %0, %1" : : "i" (dcrn), "r" (__value)); \ - }) - + ({uint32_t __value = (value); \ + asm volatile ("mtdcr %0, %1" : : "i" (dcrn), "r" (__value)); \ + }) + /// Read-Modify-Write a DCR with OR (Set DCR bits) /// |