summaryrefslogtreecommitdiffstats
path: root/bsps/i386/pc386/console/conscfg.c
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2020-06-17 15:57:26 +1000
committerChris Johns <chrisj@rtems.org>2020-06-18 12:03:28 +1000
commitbc73a08598d43d93cfa5607fd1807bf2b3c564ce (patch)
tree440414177c199f6d295671b354bf2cf978aabc85 /bsps/i386/pc386/console/conscfg.c
parentbsps/i386/pc386/start/*.S: Remove space before tab (diff)
downloadrtems-bc73a08598d43d93cfa5607fd1807bf2b3c564ce.tar.bz2
i386/pc: Initialise the printk serial port on first use
Diffstat (limited to 'bsps/i386/pc386/console/conscfg.c')
-rw-r--r--bsps/i386/pc386/console/conscfg.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/bsps/i386/pc386/console/conscfg.c b/bsps/i386/pc386/console/conscfg.c
index a4ae88626f..8aa8ab5c2a 100644
--- a/bsps/i386/pc386/console/conscfg.c
+++ b/bsps/i386/pc386/console/conscfg.c
@@ -46,15 +46,14 @@
#define CLOCK_RATE (115200 * 16)
- static uint8_t com_get_register(uint32_t addr, uint8_t i)
+ static uint8_t com_get_register(uintptr_t addr, uint8_t i)
{
- register uint8_t val;
-
+ uint8_t val;
inport_byte( (addr + i), val );
return val;
}
- static void com_set_register(uint32_t addr, uint8_t i, uint8_t val)
+ static void com_set_register(uintptr_t addr, uint8_t i, uint8_t val)
{
outport_byte( (addr + i), val );
}