nds32: To refine readability of INT_MASK_INITAIAL_VAL
authorGreentime Hu <greentime@andestech.com>
Mon, 30 Apr 2018 03:32:47 +0000 (11:32 +0800)
committerGreentime Hu <greentime@andestech.com>
Wed, 23 May 2018 05:26:21 +0000 (13:26 +0800)
Refine readability of INT_MASK_INITAIAL_VAL with meaningful macro instead
of magic number.

Signed-off-by: Greentime Hu <greentime@andestech.com>
arch/nds32/include/asm/bitfield.h

index c73f71d6774450af5b765c891b35e5c14f6c389e..28b7d797fd59baa289c3a507d04242f17fc52c6a 100644 (file)
 #define INT_MASK_mskIDIVZE     ( 0x1  << INT_MASK_offIDIVZE )
 #define INT_MASK_mskDSSIM      ( 0x1  << INT_MASK_offDSSIM )
 
-#define INT_MASK_INITAIAL_VAL  0x10003
+#define INT_MASK_INITAIAL_VAL  (INT_MASK_mskDSSIM|INT_MASK_mskIDIVZE)
 
 /******************************************************************************
  * ir15: INT_PEND (Interrupt Pending Register)