2010-03-03 15:27:30 +01:00
|
|
|
/* outb() - Output one byte Author: Kees J. Bot */
|
|
|
|
/* 18 Mar 1996 */
|
|
|
|
/* void outb(U16_t port, U8_t value); */
|
2010-08-17 18:44:07 +02:00
|
|
|
#include <machine/asm.h>
|
2010-03-03 15:27:30 +01:00
|
|
|
|
2010-08-17 18:44:07 +02:00
|
|
|
ENTRY(outb)
|
2010-03-03 15:27:30 +01:00
|
|
|
push %ebp
|
|
|
|
movl %esp, %ebp
|
|
|
|
movl 8(%ebp), %edx /* port */
|
|
|
|
movl 8+4(%ebp), %eax /* value */
|
|
|
|
outb %dx /* output 1 byte */
|
|
|
|
pop %ebp
|
|
|
|
ret
|