ia64/linux-2.6.18-xen.hg

annotate arch/m68knommu/lib/semaphore.S @ 854:950b9eb27661

usbback: fix urb interval value for interrupt urbs.

Signed-off-by: Noboru Iwamatsu <n_iwamatsu@jp.fujitsu.com>
author Keir Fraser <keir.fraser@citrix.com>
date Mon Apr 06 13:51:20 2009 +0100 (2009-04-06)
parents 831230e53067
children
rev   line source
ian@0 1 /*
ian@0 2 * linux/arch/m68k/lib/semaphore.S
ian@0 3 *
ian@0 4 * Copyright (C) 1996 Linus Torvalds
ian@0 5 *
ian@0 6 * m68k version by Andreas Schwab
ian@0 7 *
ian@0 8 * MAR/1999 -- modified to support ColdFire (gerg@snapgear.com)
ian@0 9 */
ian@0 10
ian@0 11 #include <linux/linkage.h>
ian@0 12 #include <asm/semaphore.h>
ian@0 13
ian@0 14 /*
ian@0 15 * "down_failed" is called with the eventual return address
ian@0 16 * in %a0, and the address of the semaphore in %a1. We need
ian@0 17 * to increment the number of waiters on the semaphore,
ian@0 18 * call "__down()", and then eventually return to try again.
ian@0 19 */
ian@0 20 ENTRY(__down_failed)
ian@0 21 #ifdef CONFIG_COLDFIRE
ian@0 22 subl #12,%sp
ian@0 23 moveml %a0/%d0/%d1,(%sp)
ian@0 24 #else
ian@0 25 moveml %a0/%d0/%d1,-(%sp)
ian@0 26 #endif
ian@0 27 movel %a1,-(%sp)
ian@0 28 jbsr __down
ian@0 29 movel (%sp)+,%a1
ian@0 30 movel (%sp)+,%d0
ian@0 31 movel (%sp)+,%d1
ian@0 32 rts
ian@0 33
ian@0 34 ENTRY(__down_failed_interruptible)
ian@0 35 movel %a0,-(%sp)
ian@0 36 movel %d1,-(%sp)
ian@0 37 movel %a1,-(%sp)
ian@0 38 jbsr __down_interruptible
ian@0 39 movel (%sp)+,%a1
ian@0 40 movel (%sp)+,%d1
ian@0 41 rts
ian@0 42
ian@0 43 ENTRY(__up_wakeup)
ian@0 44 #ifdef CONFIG_COLDFIRE
ian@0 45 subl #12,%sp
ian@0 46 moveml %a0/%d0/%d1,(%sp)
ian@0 47 #else
ian@0 48 moveml %a0/%d0/%d1,-(%sp)
ian@0 49 #endif
ian@0 50 movel %a1,-(%sp)
ian@0 51 jbsr __up
ian@0 52 movel (%sp)+,%a1
ian@0 53 movel (%sp)+,%d0
ian@0 54 movel (%sp)+,%d1
ian@0 55 rts
ian@0 56
ian@0 57 ENTRY(__down_failed_trylock)
ian@0 58 movel %a0,-(%sp)
ian@0 59 movel %d1,-(%sp)
ian@0 60 movel %a1,-(%sp)
ian@0 61 jbsr __down_trylock
ian@0 62 movel (%sp)+,%a1
ian@0 63 movel (%sp)+,%d1
ian@0 64 movel (%sp)+,%a0
ian@0 65 rts
ian@0 66