Next:
Code for CodeWarrior
Up:
Interrupt lock, unlock
Previous:
Interrupt lock, unlock
Contents
Code for GCC
void unlock (void)
{
__asm__ __volatile__(cli);
}
void lock (void)
{
short mask;
__asm__ __volatile__(tpa\n\tsei:=d(mask));
}
epimerde 2007-06-08