2 * linux/arch/alpha/lib/semaphore.S
4 * Copyright (C) 1999 Richard Henderson
8 * The semaphore operations have a special calling sequence that
9 * allow us to do a simpler in-line version of them. These routines
10 * need to convert that sequence back into the C sequence when
11 * there is contention on the semaphore.
18 /* __down_failed takes the semaphore in $24, clobbers $24 and $28. */
73 /* __down_failed_interruptible takes the semaphore in $24,
74 clobbers $28, returns success in $24. */
76 .globl __down_failed_interruptible
77 .ent __down_failed_interruptible
78 __down_failed_interruptible:
100 .frame $30, 20*8, $28
128 .end __down_failed_interruptible
130 /* __up_wakeup takes the semaphore in $24, clobbers $24 and $28. */
156 .frame $30, 20*8, $28