Annotation of Gnu-Mach/linux/src/arch/i386/lib/semaphore.S, revision 1.1

1.1     ! root        1: /*
        !             2:  *  linux/arch/i386/lib/semaphore.S
        !             3:  *
        !             4:  *  Copyright (C) 1996  Linus Torvalds
        !             5:  */
        !             6: 
        !             7: #include <linux/linkage.h>
        !             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: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.