| * linux/arch/m68k/lib/semaphore.S |
| * Copyright (C) 1996 Linus Torvalds |
| * m68k version by Andreas Schwab |
| #include <linux/linkage.h> |
| #include <asm/semaphore.h> |
| * The semaphore operations have a special calling sequence that |
| * allow us to do a simpler in-line version of them. These routines |
| * need to convert that sequence back into the C sequence when |
| * there is contention on the semaphore. |
| moveml %a0/%d0/%d1,-(%sp) |
| moveml (%sp)+,%a0/%d0/%d1 |
| ENTRY(__down_failed_interruptible) |
| jbsr __down_interruptible |
| ENTRY(__down_failed_trylock) |
| moveml %a0/%d0/%d1,-(%sp) |
| moveml (%sp)+,%a0/%d0/%d1 |