Skip to contentSkip to conversation

at91sam9260

Adeos-main Michael Trimarchi 2 participants 2 messages Dec 14, 2007

lore
Share & tools
lore
#0 lore raw

Hi,

+#define PICK_SPINUNLOCK_IRQ_RAW(lock) \
+do { \
+ if (TYPE_EQUAL((lock), __ipipe_spinlock_t)) { \
+ __ipipe_spin_lock_irq(&((__ipipe_spinlock_t *)(lock))->__raw_lock); \

+       } else if (TYPE_EQUAL(lock, spinlock_t))                        \
+               __raw_spin_unlock(&((spinlock_t *)(lock))->raw_lock);   \
+               local_irq_enable();                                     \

+} while (0)

Who can me explain this in the official adeos-ipipe-2.6.20-arm-1.7-06.patch ? I don't understand

Regards Michael

      ___________________________________ 

L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail:
http://it.docs.yahoo.com/nowyoucan.html

#1 lore raw
Quoted 12 lines · Michael Trimarchi

Hi,

(quoted diff) +8 -0
+#define PICK_SPINUNLOCK_IRQ_RAW(lock)                          \
+do {                                                                   \
+       if (TYPE_EQUAL((lock), __ipipe_spinlock_t)) {                   \
+               __ipipe_spin_lock_irq(&((__ipipe_spinlock_t *)(lock))->__raw_lock); \
+       } else if (TYPE_EQUAL(lock, spinlock_t))                        \
+               __raw_spin_unlock(&((spinlock_t *)(lock))->raw_lock);   \
+               local_irq_enable();                                     \
+} while (0)
Quoted 4 lines

Who can me explain this in the official adeos-ipipe-2.6.20-arm-1.7-06.patch ? I don't understand

Regards Michael

Looks like a cut and paste bug.

Signature · 1 line
					    Gilles Chanteperdrix.