repo.or.cz
/
minix.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
coverity appeasement - redundant check
[minix.git]
/
kernel
/
arch
/
i386
/
io_inw.S
blob
e22ef8826490575a391a1c1e2678574a32cf4211
1
/* inw() - Input one word Author: Kees J. Bot */
2
/* 18 Mar 1996 */
3
/* unsigned inw(U16_t port); */
4
#include <machine/asm.h>
5
6
ENTRY(inw)
7
push %ebp
8
movl %esp, %ebp
9
movl 8(%ebp), %edx /* port */
10
xorl %eax, %eax
11
inw %dx /* read 1 word */
12
pop %ebp
13
ret