发布时间:2016-11-27 13:48:41
转:http://blog.csdn.net/eleven_yy/article/details/8017585与UP和SMP无关的定义:typedef struct { volatile unsigned int lock; } spinlock_t; #define SPIN_LOCK_UNLOCKED (spinlock_t){ 0 }#define local_irq_save(x) __asm__ __volatile__(\"pushfl ; popl %0 ; cli\":\"=g\" (x).........【阅读全文】