//******************************************************* //* 2007
18 //******************************************************* 在 /kernel/include/asm-arm/arch-s3c2410/bitfield
h 文件中: #ifndef __ASSEMBLY__ #define UData(Data) ((unsigned long) (Data)) #else #define UData(Data) (Data) #endif 例:UData(5); = 5 /* * MACRO: Fld * * Purpose * The macro "Fld" encodes a bit field, given its size and its shift value * with respect to bit 0
* * Note * A more intuitive way to encode bit fields would have been to use their * mask
However, extracting size and shift value information from a bit * field''''s mask is cumbersome and might break the assembler (255-character * line-size limit)
* * Input * Size Size of the bit field, in number of bits
* Shft Shift value of the bit field