Skip to contentSkip to conversation

2.4: typo in system.h / __save_and_sti

DISCUSSION Johannes Stezenbach 2 participants 2 messages Jul 17, 2003 – Jul 18, 2003 MIPS

lore
Share & tools
lore
#0 lore raw

Hi,

I noticed a typo in the (apparently unused) __save_and_sti() macro:

include/asm/system.h (both mips and mips64, linux_2_4 branch):

#define __save_and_sti(x)                                               \
__asm__ __volatile__(                                                   \
        "__save_and_cli\t%0"                                            \
                    ^^^
        : "=r" (x)                                                      \
        : /* no inputs */                                               \
        : "memory")

Johannes

#1 lore raw
Quoted 1 line · Johannes Stezenbach

I noticed a typo in the (apparently unused) __save_and_sti() macro:

Thanks for noticing this one. Yes, __save_and_sti() seems unused except by local_irq_set() which itself is unused. The operation it performs seems to be of little use but anyway, as a pointless exercise appropriate for 5:20am hacking I fixed it in CVS.

Ralf