OpenCores
URL https://opencores.org/ocsvn/or1k_old/or1k_old/trunk

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [rc203soc/] [sw/] [uClinux/] [arch/] [i386/] [lib/] [semaphore.S] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1623 jcastillo
/*
2
 *  linux/arch/i386/lib/semaphore.S
3
 *
4
 *  Copyright (C) 1996  Linus Torvalds
5
 */
6
 
7
#include 
8
 
9
/*
10
 * "down_failed" is called with the eventual return address
11
 * in %eax, and the address of the semaphore in %ecx. We need
12
 * to increment the number of waiters on the semaphore,
13
 * call "__down()", and then eventually return to try again.
14
 */
15
ENTRY(down_failed)
16
        pushl %eax
17
        pushl %ecx
18
        call SYMBOL_NAME(__down)
19
        popl %ecx
20
        ret
21
 
22
ENTRY(up_wakeup)
23
        pushl %eax
24
        pushl %ecx
25
        call SYMBOL_NAME(__up)
26
        popl %ecx
27
        ret
28
 
29
ENTRY(down_failed_interruptible)
30
        pushl %eax
31
        pushl %ecx
32
        call SYMBOL_NAME(__down_interruptible)
33
        popl %ecx
34
        ret
35
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.