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