2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
6 #include <aros/kernel.h>
8 #include <kernel_base.h>
9 #include <kernel_debug.h>
11 #include <asm/amcc440.h>
14 #include <proto/kernel.h>
16 /* See rom/kernel/maygetchar.c for documentation */
18 AROS_LH0(int, KrnMayGetChar
,
19 struct KernelBase
*, KernelBase
, 26, Kernel
)
23 if (inb(UART0_LSR
) & UART_LSR_DR
)
24 return inb(UART0_RBR
);