nico@210: nico@210: nico@210: nico@210: nico@210: nico@210: Code for GCC nico@210: nico@210: nico@210: nico@210: nico@210: nico@210: nico@210: nico@210: nico@210: nico@210: nico@210: nico@210: nico@210: nico@210: nico@210: nico@210: nico@210: nico@210: nico@210: nico@210: nico@210: nico@210:
nico@210: Code for GCC nico@210:
nico@210: void unlock (void) nico@210:
nico@210: { nico@210:
nico@210: nico@210:
nico@210: __asm__ nico@210: __volatile__(cli); nico@210:
nico@210: } nico@210:
nico@210: void lock (void) nico@210:
nico@210: { nico@210:
nico@210: short mask; nico@210:
nico@210: nico@210:
nico@210: __asm__ nico@210: __volatile__(tpa\n\tsei:=d(mask)); nico@210:
nico@210: }
nico@210: nico@210:

nico@210:


nico@210:
nico@210: epimerde nico@215: 2007-06-08 nico@210:
nico@210: nico@210: