阅读背景:

有没有办法告诉GCC不要重新排序任何指令,而不仅仅是加载/存储?

来源:互联网 

I'm working on the irq_lock() / irq_unlock() implementation for an RTOS and found an issue. We want to absolutely minimize how much time the CPU spends with interrupts locked. Right now, our irq_lock() inline function for x86 uses "memory" clobber:I'm working on the irq_lock() / irq_unlock() im




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: