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: 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@210: 2007-06-05
nico@210:
nico@210:
nico@210: