This is not required at the moment, as we don't have any real hardware
that would need 8-bit register distance together with MMIO.

Signed-off-by: Ralf Ramsauer <[email protected]>
---
 hypervisor/arch/x86/uart.c | 19 ++-----------------
 1 file changed, 2 insertions(+), 17 deletions(-)

diff --git a/hypervisor/arch/x86/uart.c b/hypervisor/arch/x86/uart.c
index 09c66f01a7..6214a75131 100644
--- a/hypervisor/arch/x86/uart.c
+++ b/hypervisor/arch/x86/uart.c
@@ -39,16 +39,6 @@ static u8 uart_pio_in(unsigned int reg)
        return inb(uart_base + reg);
 }
 
-static void uart_mmio8_out(unsigned int reg, u8 value)
-{
-       mmio_write8((void *)(uart_base + reg), value);
-}
-
-static u8 uart_mmio8_in(unsigned int reg)
-{
-       return mmio_read8((void *)(uart_base + reg));
-}
-
 static void uart_mmio32_out(unsigned int reg, u8 value)
 {
        mmio_write32((void *)(uart_base + reg * 4), value);
@@ -73,13 +63,8 @@ void uart_init(void)
                if (system_config->debug_console.phys_start < VGA_LIMIT)
                        return; /* VGA memory */
 
-               if (flags & JAILHOUSE_MEM_IO_32) {
-                       uart_reg_out = uart_mmio32_out;
-                       uart_reg_in = uart_mmio32_in;
-               } else {
-                       uart_reg_out = uart_mmio8_out;
-                       uart_reg_in = uart_mmio8_in;
-               }
+               uart_reg_out = uart_mmio32_out;
+               uart_reg_in = uart_mmio32_in;
                uart_base = (u64)hypervisor_header.debug_console_base;
        } else {
                uart_base = system_config->debug_console.phys_start;
-- 
2.11.0.rc2

-- 
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to