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] - Rev 1782

Compare with Previous | Blame | View Log

/*
 *  linux/arch/i386/lib/semaphore.S
 *
 *  Copyright (C) 1996  Linus Torvalds
 */

#include <linux/linkage.h>

/*
 * "down_failed" is called with the eventual return address
 * in %eax, and the address of the semaphore in %ecx. We need
 * to increment the number of waiters on the semaphore,
 * call "__down()", and then eventually return to try again.
 */
ENTRY(down_failed)
        pushl %eax
        pushl %ecx
        call SYMBOL_NAME(__down)
        popl %ecx
        ret

ENTRY(up_wakeup)
        pushl %eax
        pushl %ecx
        call SYMBOL_NAME(__up)
        popl %ecx
        ret

ENTRY(down_failed_interruptible)
        pushl %eax
        pushl %ecx
        call SYMBOL_NAME(__down_interruptible)
        popl %ecx
        ret

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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