| * cmpxchg*() fallbacks for CPU not supporting these instructions |
| #include <linux/kernel.h> |
| #include <linux/module.h> |
| #ifndef CONFIG_X86_CMPXCHG |
| unsigned long cmpxchg_386_u8(volatile void *ptr, u8 old, u8 new) |
| /* Poor man's cmpxchg for 386. Unsuitable for SMP */ |
| local_irq_restore(flags); |
| EXPORT_SYMBOL(cmpxchg_386_u8); |
| unsigned long cmpxchg_386_u16(volatile void *ptr, u16 old, u16 new) |
| /* Poor man's cmpxchg for 386. Unsuitable for SMP */ |
| local_irq_restore(flags); |
| EXPORT_SYMBOL(cmpxchg_386_u16); |
| unsigned long cmpxchg_386_u32(volatile void *ptr, u32 old, u32 new) |
| /* Poor man's cmpxchg for 386. Unsuitable for SMP */ |
| local_irq_restore(flags); |
| EXPORT_SYMBOL(cmpxchg_386_u32); |