semaphore.s

来自「GNU Mach 微内核源代码, 基于美国卡内基美隆大学的 Mach 研究项目」· S 代码 · 共 36 行

S
36
字号
/* *  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	retENTRY(up_wakeup)	pushl %eax	pushl %ecx	call SYMBOL_NAME(__up)	popl %ecx	retENTRY(down_failed_interruptible)	pushl %eax	pushl %ecx	call SYMBOL_NAME(__down_interruptible)	popl %ecx	ret

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?